hot-formula-parser
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "hot-formula-parser", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Formula parser", | ||
@@ -5,0 +5,0 @@ "main": "dist/formula-parser.js", |
@@ -11,4 +11,2 @@ import Emitter from 'tiny-emitter'; | ||
const variables = new WeakMap(); | ||
/** | ||
@@ -31,7 +29,8 @@ * @class Parser | ||
}; | ||
variables.set(this, { | ||
TRUE: true, | ||
FALSE: false, | ||
NULL: null, | ||
}); | ||
this.variables = Object.create(null); | ||
this | ||
.setVariable('TRUE', true) | ||
.setVariable('FALSE', false) | ||
.setVariable('NULL', null); | ||
} | ||
@@ -80,3 +79,3 @@ | ||
setVariable(name, value) { | ||
variables.get(this)[name] = value; | ||
this.variables[name] = value; | ||
@@ -93,3 +92,3 @@ return this; | ||
getVariable(name) { | ||
return variables.get(this)[name]; | ||
return this.variables[name]; | ||
} | ||
@@ -96,0 +95,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2256948
19239