Skip to content

Commit

Permalink
General fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oxford committed Aug 12, 2020
1 parent d4d1441 commit ae545ae
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scoped-js.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scoped-js.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"homepage": "https://www.web-native.dev",
"icon": "https://www.web-native.dev/icon.svg",
"author": "Oxford Harrison <[email protected]>",
"version": "1.0.9",
"version": "1.1.2",
"license": "MIT",
"type": "module",
"repository": {
Expand All @@ -33,7 +33,7 @@
},
"dependencies": {
"@web-native-js/commons": "^0.5.0",
"@web-native-js/jsen": "^0.5.4",
"@web-native-js/jsen": "file:../jsen",
"@web-native-js/observer": "^1.0.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/scoped-js/Scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/**
* @imports
*/
import { Contexts } from '@web-native-js/jsen';
import { Scope } from '@web-native-js/jsen';

/**
* ---------------------------
* The Contexts class
* ---------------------------
*/

export default Contexts;
export default Scope;
3 changes: 2 additions & 1 deletion src/scoped-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ export default function() {
console.warn(target, e.message);
}
},
trap: ENV.trap,
};
if (targetScriptBase.AST) {
var returnValue = targetScriptBase.AST.eval(targetScriptBase.scope, params, ENV.trap);
var returnValue = targetScriptBase.AST.eval(targetScriptBase.scope, params);
if (_isFunction(returnValue)) {
returnValue(targetScriptBase.scope.stack.main);
}
Expand Down

0 comments on commit ae545ae

Please sign in to comment.