Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/amorphic/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 11.0.0
* target es2020
## 10.3.0
* Add validator middleware to express server, config settings for whitelist, blacklist, escape
## 10.2.1
Expand Down
4 changes: 2 additions & 2 deletions components/amorphic/lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ function bindDecorators (objectTemplate) {
*/
this.Supertype = function Supertype() {
if (objectTemplate.Supertype) {
return objectTemplate.Supertype.call(this, objectTemplate);
return Reflect.construct( objectTemplate.Supertype, [objectTemplate], this.constructor );
}
else {
return SupertypeDefinition.Supertype.call(this, objectTemplate);
return Reflect.construct( SupertypeDefinition.Supertype, [objectTemplate], this.constructor );
}
};
this.Supertype.prototype = SupertypeDefinition.Supertype.prototype;
Expand Down
104 changes: 27 additions & 77 deletions components/amorphic/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions components/amorphic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"homepage": "https://github.com/haven-life/amorphic",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"version": "10.3.0",
"version": "11.0.0",
"dependencies": {
"@haventech/persistor": "8.x",
"@haventech/semotus": "6.x",
"@haventech/supertype": "^5.0.0",
"@haventech/persistor": "9.0.0-beta.2",
"@haventech/semotus": "7.0.0-beta.3",
"@haventech/supertype": "6.0.0-beta.4",
"amorphic-bindster": "2.0.*",
"compression": "1.7.4",
"cookie-parser": "1.4.6",
Expand Down
1 change: 1 addition & 0 deletions components/amorphic/test/V2/amorphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function beforeEachDescribe(done, appName, createControllerFor, sourceMode) {

describe('toClient and toServer testing', function() {
before(function(done) {
this.timeout(5000);
return beforeEachDescribe(done, 'app2', 'yes', 'debug');
});
after(afterEachDescribe);
Expand Down
3 changes: 2 additions & 1 deletion components/amorphic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
],
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"target": "es2020",
"lib": [
"es2020",
"dom",
"es5",
"es2015.promise"
Expand Down