Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esper.js

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esper.js - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

package.json
{
"name": "esper.js",
"version": "0.1.0",
"version": "0.1.1",
"description": "Esper javascript interperter.",

@@ -23,3 +23,3 @@ "main": "src/index.js",

"type": "git",
"url": "git+ssh://git@github.com/codecombat/esper-staging.git"
"url": "git+ssh://git@github.com/codecombat/esper.js.git"
},

@@ -36,5 +36,5 @@ "keywords": [

"bugs": {
"url": "https://github.com/codecombat/esper-staging/issues"
"url": "https://github.com/codecombat/esper.js/issues"
},
"homepage": "https://github.com/codecombat/esper-staging#readme",
"homepage": "https://github.com/codecombat/esper.js#readme",
"devDependencies": {

@@ -41,0 +41,0 @@ "babel-core": "^6.4.0",

@@ -97,3 +97,3 @@ # Esper.js

[The MIT License](License)
[The MIT License](LICENSE.txt)

@@ -100,0 +100,0 @@

@@ -9,5 +9,4 @@ 'use strict';

class EsperObject extends EasyObjectValue {
static *dump$cew(thiz, args) {
console.log('DUMP', args);
console.log('Esper#dump:', args);
if ( typeof window !== 'undefined' ) window.dumped = args[0];

@@ -24,5 +23,14 @@ return Value.undef;

static *stack$cew(thiz, args, scope, extra) {
console.log(extra.evaluator);
return Value.fromNative(extra.evaluator.buildStacktrace().join('\n'));
}
static *globals$cew(thiz, args, scope, extra) {
return scope.global.object;
}
static *scope$cew(thiz, args, scope, extra) {
return scope.object;
}
}

@@ -29,0 +37,0 @@

@@ -30,4 +30,14 @@ 'use strict';

/**
* @param {String} name
* @param {Realm} realm
* @returns {CompletionRecord} Indexing empty values is a type error.
*/
*get(name, realm) {
let err = 'Cannot read property \'' + name + '\' of ' + this.specTypeName;
return CompletionRecord.makeTypeError(realm, err);
}
}
module.exports = EmptyValue;

@@ -133,3 +133,7 @@ 'use strict';

let result = invoke(this.native, thiz ? thiz.toNative() : undefined, realArgs);
return this.makeLink(result, s.realm);
let val = this.makeLink(result, s.realm);
if ( typeof s.realm.options.linkValueCallReturnValueWrapper === 'function' ) {
val = s.realm.options.linkValueCallReturnValueWrapper(val);
}
return val;
} catch ( e ) {

@@ -136,0 +140,0 @@ let result = this.makeLink(e, s.realm);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc