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

@agoric/acorn-eventual-send

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/acorn-eventual-send - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

15

index.js

@@ -1,2 +0,2 @@

const { tokTypes: tt, TokenType } = require('acorn');
const { tokTypes: tt, TokenType, Parser: AcornParser } = require('acorn');

@@ -24,7 +24,7 @@ const tok = {

readToken(code) {
getTokenFromCode(code) {
if (code === tilde) {
return this.readToken_tilde();
}
return super.readToken(code);
return super.getTokenFromCode(code);
}

@@ -56,3 +56,3 @@

} else if (this.eat(tt.parenL)) {
// x ~. (y, z) := HandledPromise.apply(base, [y, z])
// x ~. (y, z) := HandledPromise.applyFunction(base, [y, z])
// No argument other than base.

@@ -69,7 +69,6 @@ eatenParenL = true;

}
if (eatenParenL || this.eat(tt.parenL)) {
// x ~. [i](y, z) := HandledPromise.applyMethod(base, i, [y, z])
// x ~. (y, z) := HandledPromise.apply(base, [y, z]);
method = eatenParenL ? 'apply' : 'applyMethod';
// x ~. (y, z) := HandledPromise.applyFunction(base, [y, z]);
method = eatenParenL ? 'applyFunction' : 'applyMethod';
// The rest of the arguments are in parens.

@@ -157,1 +156,3 @@ let expr = this.startNode();

module.exports.tokTypes = tok;
module.exports.Parser = AcornParser;
{
"name": "@agoric/acorn-eventual-send",
"version": "1.0.1",
"version": "1.0.2",
"description": "Eventual send (wavy dot) parser plugin for Acorn",

@@ -5,0 +5,0 @@ "main": "index.js",

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