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

ample

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ample - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

ample.js

@@ -77,3 +77,3 @@ var Lang = require('lang-js'),

ParenthesesOpenToken.tokenPrecedence = 1;
ParenthesesOpenToken.prototype.parsePrecedence = 5;
ParenthesesOpenToken.prototype.parsePrecedence = 2;
ParenthesesOpenToken.prototype.name = 'ParenthesesOpenToken'

@@ -85,3 +85,3 @@ ParenthesesOpenToken.tokenise = function(substring) {

}
ParenthesesOpenToken.prototype.parse = function(tokens, position){
ParenthesesOpenToken.prototype.parse = function(tokens, position, parse){
this.childTokens = [];

@@ -101,2 +101,4 @@

this.childTokens = parse(this.childTokens);
// Remove close token

@@ -276,3 +278,3 @@ tokens.splice(nextIndex, 1)[0]

OpperatorToken.tokenPrecedence = 2;
OpperatorToken.prototype.parsePrecedence = 4;
OpperatorToken.prototype.parsePrecedence = 3;
OpperatorToken.prototype.name = 'OpperatorToken';

@@ -377,3 +379,3 @@ OpperatorToken.prototype.parse = function(tokens, position){

IdentifierToken.tokenPrecedence = 3;
IdentifierToken.prototype.parsePrecedence = 3;
IdentifierToken.prototype.parsePrecedence = 2;
IdentifierToken.prototype.name = 'IdentifierToken';

@@ -380,0 +382,0 @@ IdentifierToken.tokenise = function(substring){

2

package.json
{
"name": "ample",
"version": "1.0.1",
"version": "1.0.2",
"main": "ample.js",

@@ -5,0 +5,0 @@ "directories": {

@@ -54,2 +54,10 @@ var test = require('grape'),

});
test("var a = 5; floor(a / 2) / 2", function (t) {
t.plan(1);
t.equal(ample.evaluate(t.name), 1);
});
test("var a = 5; 2 * floor(a / 2)", function (t) {
t.plan(1);
t.equal(ample.evaluate(t.name), 4);
});
test("1(1)", function (t) {

@@ -56,0 +64,0 @@ t.plan(1);

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