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

ez-string

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ez-string - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

2

docs/index.json

@@ -642,3 +642,3 @@ [

"kind": "packageJSON",
"content": "{\r\n \"name\": \"ez-string\",\r\n \"version\": \"1.1.8\",\r\n \"description\": \"A string template renderer for JavaScript without memory leaks.\",\r\n \"main\": \"ez-string.js\",\r\n \"scripts\": {\r\n \"analyze-tests\": \"node ./tools/analyze-tests.js prod-tests.xml\",\r\n \"esdoc\": \"esdoc -c ./esdoc.json\",\r\n \"eslint-fix\": \"eslint --config=./config/eslint.config.json --fix src/**/*.js test/**/*.js tools/**/*.js gulpfile.js\",\r\n \"eslint-watch\": \"esw --config=./config/eslint.config.json -w --fix src/**/*.js test/**/*.js tools/**/*.js gulpfile.js\",\r\n \"generate\": \"node ./src/private/generator.js\",\r\n \"test-watch\": \"cross-env TEST_MODE=DEV mocha --reporter spec -w --recursive test/specs/*.spec.js\",\r\n \"dev-test\": \"cross-env TEST_MODE=DEV nyc --reporter=html --reporter=text --report-dir=./build/coverage --check-coverage --lines 100 --functions 100 --branches 100 mocha --reporter spec test/specs/*.spec.js\",\r\n \"gen-test\": \"cross-env TEST_MODE=GEN mocha --reporter spec test/specs/*.spec.js\",\r\n \"prod-test\": \"mocha --reporter mocha-multi-reporters --reporter-options configFile=./config/mocha-reporters.json test/specs/*.spec.js\",\r\n \"web-test\": \"mocha --reporter spec test/browser/*.spec.js\",\r\n \"webpack\": \"webpack --config ./config/webpack.config.js\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"git+https://github.com/Kirusi/ez-string.git\"\r\n },\r\n \"keywords\": [\r\n \"string\",\r\n \"template\",\r\n \"render\",\r\n \"interpolation\",\r\n \"variable\",\r\n \"substitution\"\r\n ],\r\n \"author\": \"Kirusi Msafiri\",\r\n \"license\": \"0BSD\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/Kirusi/ez-string/issues\"\r\n },\r\n \"homepage\": \"https://github.com/Kirusi/ez-string#readme\",\r\n \"devDependencies\": {\r\n \"coveralls\": \"^3.0.0\",\r\n \"cross-env\": \"^5.2.0\",\r\n \"del\": \"^3.0.0\",\r\n \"esdoc\": \"^1.0.4\",\r\n \"esdoc-node\": \"^1.0.2\",\r\n \"esdoc-standard-plugin\": \"^1.0.0\",\r\n \"eslint\": \"^4.18.2\",\r\n \"eslint-watch\": \"^3.1.3\",\r\n \"gh-badges\": \"^2.1.0\",\r\n \"gulp\": \"^4.0.0\",\r\n \"jison\": \"^0.4.18\",\r\n \"libxmljs\": \"^0.19.5\",\r\n \"mocha\": \"^4.1.0\",\r\n \"mocha-junit-reporter\": \"^1.18.0\",\r\n \"mocha-lcov-reporter\": \"^1.3.0\",\r\n \"mocha-multi-reporters\": \"^1.1.7\",\r\n \"nyc\": \"^11.4.1\",\r\n \"plugin-error\": \"^1.0.1\",\r\n \"selenium-webdriver\": \"^4.0.0-alpha.1\",\r\n \"should\": \"^13.1.3\",\r\n \"webpack\": \"^3.10.0\"\r\n }\r\n}\r\n",
"content": "{\r\n \"name\": \"ez-string\",\r\n \"version\": \"1.1.9\",\r\n \"description\": \"A string template renderer for JavaScript without memory leaks.\",\r\n \"main\": \"ez-string.js\",\r\n \"scripts\": {\r\n \"analyze-tests\": \"node ./tools/analyze-tests.js prod-tests.xml\",\r\n \"esdoc\": \"esdoc -c ./esdoc.json\",\r\n \"eslint-fix\": \"eslint --config=./config/eslint.config.json --fix src/**/*.js test/**/*.js tools/**/*.js gulpfile.js\",\r\n \"eslint-watch\": \"esw --config=./config/eslint.config.json -w --fix src/**/*.js test/**/*.js tools/**/*.js gulpfile.js\",\r\n \"generate\": \"node ./src/private/generator.js\",\r\n \"test-watch\": \"cross-env TEST_MODE=DEV mocha --reporter spec -w --recursive test/specs/*.spec.js\",\r\n \"dev-test\": \"cross-env TEST_MODE=DEV nyc --reporter=html --reporter=text --report-dir=./build/coverage --check-coverage --lines 100 --functions 100 --branches 100 mocha --reporter spec test/specs/*.spec.js\",\r\n \"gen-test\": \"cross-env TEST_MODE=GEN mocha --reporter spec test/specs/*.spec.js\",\r\n \"prod-test\": \"mocha --reporter mocha-multi-reporters --reporter-options configFile=./config/mocha-reporters.json test/specs/*.spec.js\",\r\n \"web-test\": \"mocha --reporter spec test/browser/*.spec.js\",\r\n \"webpack\": \"webpack --config ./config/webpack.config.js\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"git+https://github.com/Kirusi/ez-string.git\"\r\n },\r\n \"keywords\": [\r\n \"string\",\r\n \"template\",\r\n \"render\",\r\n \"interpolation\",\r\n \"variable\",\r\n \"substitution\"\r\n ],\r\n \"author\": \"Kirusi Msafiri\",\r\n \"license\": \"0BSD\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/Kirusi/ez-string/issues\"\r\n },\r\n \"homepage\": \"https://github.com/Kirusi/ez-string#readme\",\r\n \"devDependencies\": {\r\n \"coveralls\": \"^3.0.0\",\r\n \"cross-env\": \"^5.2.0\",\r\n \"del\": \"^3.0.0\",\r\n \"esdoc\": \"^1.0.4\",\r\n \"esdoc-node\": \"^1.0.2\",\r\n \"esdoc-standard-plugin\": \"^1.0.0\",\r\n \"eslint\": \"^4.18.2\",\r\n \"eslint-watch\": \"^3.1.3\",\r\n \"gh-badges\": \"^2.1.0\",\r\n \"gulp\": \"^4.0.0\",\r\n \"jison\": \"^0.4.18\",\r\n \"libxmljs\": \"^0.19.5\",\r\n \"mocha\": \"^4.1.0\",\r\n \"mocha-junit-reporter\": \"^1.18.0\",\r\n \"mocha-lcov-reporter\": \"^1.3.0\",\r\n \"mocha-multi-reporters\": \"^1.1.7\",\r\n \"nyc\": \"^11.4.1\",\r\n \"plugin-error\": \"^1.0.1\",\r\n \"selenium-webdriver\": \"^4.0.0-alpha.1\",\r\n \"should\": \"^13.1.3\",\r\n \"webpack\": \"^3.10.0\"\r\n }\r\n}\r\n",
"longname": "D:\\Personal\\Projects\\ez-string\\package.json",

@@ -645,0 +645,0 @@ "name": "package.json",

@@ -244,3 +244,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

var parser = (function(){
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[5,6,7],$V1=[1,9],$V2=[1,11],$V3=[9,13,15],$V4=[16,18];
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[5,6,7],$V1=[1,10],$V2=[1,12],$V3=[9,13,15],$V4=[16,18];
var parser = {trace: function trace () { },

@@ -250,3 +250,3 @@ yy: {},

terminals_: {2:"error",5:"EOF",6:"TEXT",7:"{",9:"}",10:"NUMBER",12:"ID",13:"[",14:"]",15:".",16:"QUOTE",18:"STRING"},
productions_: [0,[3,2],[4,1],[4,3],[4,2],[4,4],[8,1],[8,1],[11,1],[11,4],[11,3],[11,6],[11,5],[17,1],[17,2]],
productions_: [0,[3,2],[3,1],[4,1],[4,3],[4,2],[4,4],[8,1],[8,1],[11,1],[11,4],[11,3],[11,6],[11,5],[17,1],[17,2]],
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {

@@ -260,33 +260,36 @@ /* this == yyval */

break;
case 2: case 13:
case 2:
{ return ""; }
break;
case 3: case 14:
{ this.$ = $$[$0]; }
break;
case 3:
case 4:
{ this.$ = $$[$0-1]; }
break;
case 4: case 14:
case 5: case 15:
{ this.$ = $$[$0-1] + $$[$0]; }
break;
case 5:
case 6:
{ this.$ = $$[$0-3] + $$[$0-1]; }
break;
case 6:
case 7:
{ let argPos = parseInt($$[$0], 10); this.$=yy.ctx[argPos]; }
break;
case 7:
case 8:
{ this.$=yy.stack; yy.stack=undefined; }
break;
case 8:
case 9:
{ yy.stack=yy.ctx[0][$$[$0]]; }
break;
case 9:
case 10:
{ let argPos = parseInt($$[$0-1], 10); yy.stack=yy.stack[argPos]; }
break;
case 10:
case 11:
{ yy.stack=yy.stack[$$[$0]]; }
break;
case 11:
case 12:
{ yy.stack=yy.stack[$$[$0-2]]; }
break;
case 12:
case 13:
{ yy.stack=yy.stack[""]; }

@@ -296,4 +299,4 @@ break;

},
table: [{3:1,4:2,6:[1,3],7:[1,4]},{1:[3]},{5:[1,5],6:[1,6],7:[1,7]},o($V0,[2,2]),{8:8,10:$V1,11:10,12:$V2},{1:[2,1]},o($V0,[2,4]),{8:12,10:$V1,11:10,12:$V2},{9:[1,13]},{9:[2,6]},{9:[2,7],13:[1,14],15:[1,15]},o($V3,[2,8]),{9:[1,16]},o($V0,[2,3]),{10:[1,17],16:[1,18]},{12:[1,19]},o($V0,[2,5]),{14:[1,20]},{16:[1,22],17:21,18:[1,23]},o($V3,[2,10]),o($V3,[2,9]),{16:[1,24],18:[1,25]},{14:[1,26]},o($V4,[2,13]),{14:[1,27]},o($V4,[2,14]),o($V3,[2,12]),o($V3,[2,11])],
defaultActions: {5:[2,1],9:[2,6]},
table: [{3:1,4:2,5:[1,3],6:[1,4],7:[1,5]},{1:[3]},{5:[1,6],6:[1,7],7:[1,8]},{1:[2,2]},o($V0,[2,3]),{8:9,10:$V1,11:11,12:$V2},{1:[2,1]},o($V0,[2,5]),{8:13,10:$V1,11:11,12:$V2},{9:[1,14]},{9:[2,7]},{9:[2,8],13:[1,15],15:[1,16]},o($V3,[2,9]),{9:[1,17]},o($V0,[2,4]),{10:[1,18],16:[1,19]},{12:[1,20]},o($V0,[2,6]),{14:[1,21]},{16:[1,23],17:22,18:[1,24]},o($V3,[2,11]),o($V3,[2,10]),{16:[1,25],18:[1,26]},{14:[1,27]},o($V4,[2,14]),{14:[1,28]},o($V4,[2,15]),o($V3,[2,13]),o($V3,[2,12])],
defaultActions: {3:[2,2],6:[2,1],10:[2,7]},
parseError: function parseError (str, hash) {

@@ -300,0 +303,0 @@ if (hash.recoverable) {

@@ -75,3 +75,3 @@ /* parser generated by jison 0.4.18 */

var parser = (function(){
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[5,6,7],$V1=[1,9],$V2=[1,11],$V3=[9,13,15],$V4=[16,18];
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[5,6,7],$V1=[1,10],$V2=[1,12],$V3=[9,13,15],$V4=[16,18];
var parser = {trace: function trace () { },

@@ -81,3 +81,3 @@ yy: {},

terminals_: {2:"error",5:"EOF",6:"TEXT",7:"{",9:"}",10:"NUMBER",12:"ID",13:"[",14:"]",15:".",16:"QUOTE",18:"STRING"},
productions_: [0,[3,2],[4,1],[4,3],[4,2],[4,4],[8,1],[8,1],[11,1],[11,4],[11,3],[11,6],[11,5],[17,1],[17,2]],
productions_: [0,[3,2],[3,1],[4,1],[4,3],[4,2],[4,4],[8,1],[8,1],[11,1],[11,4],[11,3],[11,6],[11,5],[17,1],[17,2]],
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {

@@ -91,33 +91,36 @@ /* this == yyval */

break;
case 2: case 13:
case 2:
{ return ""; }
break;
case 3: case 14:
{ this.$ = $$[$0]; }
break;
case 3:
case 4:
{ this.$ = $$[$0-1]; }
break;
case 4: case 14:
case 5: case 15:
{ this.$ = $$[$0-1] + $$[$0]; }
break;
case 5:
case 6:
{ this.$ = $$[$0-3] + $$[$0-1]; }
break;
case 6:
case 7:
{ let argPos = parseInt($$[$0], 10); this.$=yy.ctx[argPos]; }
break;
case 7:
case 8:
{ this.$=yy.stack; yy.stack=undefined; }
break;
case 8:
case 9:
{ yy.stack=yy.ctx[0][$$[$0]]; }
break;
case 9:
case 10:
{ let argPos = parseInt($$[$0-1], 10); yy.stack=yy.stack[argPos]; }
break;
case 10:
case 11:
{ yy.stack=yy.stack[$$[$0]]; }
break;
case 11:
case 12:
{ yy.stack=yy.stack[$$[$0-2]]; }
break;
case 12:
case 13:
{ yy.stack=yy.stack[""]; }

@@ -127,4 +130,4 @@ break;

},
table: [{3:1,4:2,6:[1,3],7:[1,4]},{1:[3]},{5:[1,5],6:[1,6],7:[1,7]},o($V0,[2,2]),{8:8,10:$V1,11:10,12:$V2},{1:[2,1]},o($V0,[2,4]),{8:12,10:$V1,11:10,12:$V2},{9:[1,13]},{9:[2,6]},{9:[2,7],13:[1,14],15:[1,15]},o($V3,[2,8]),{9:[1,16]},o($V0,[2,3]),{10:[1,17],16:[1,18]},{12:[1,19]},o($V0,[2,5]),{14:[1,20]},{16:[1,22],17:21,18:[1,23]},o($V3,[2,10]),o($V3,[2,9]),{16:[1,24],18:[1,25]},{14:[1,26]},o($V4,[2,13]),{14:[1,27]},o($V4,[2,14]),o($V3,[2,12]),o($V3,[2,11])],
defaultActions: {5:[2,1],9:[2,6]},
table: [{3:1,4:2,5:[1,3],6:[1,4],7:[1,5]},{1:[3]},{5:[1,6],6:[1,7],7:[1,8]},{1:[2,2]},o($V0,[2,3]),{8:9,10:$V1,11:11,12:$V2},{1:[2,1]},o($V0,[2,5]),{8:13,10:$V1,11:11,12:$V2},{9:[1,14]},{9:[2,7]},{9:[2,8],13:[1,15],15:[1,16]},o($V3,[2,9]),{9:[1,17]},o($V0,[2,4]),{10:[1,18],16:[1,19]},{12:[1,20]},o($V0,[2,6]),{14:[1,21]},{16:[1,23],17:22,18:[1,24]},o($V3,[2,11]),o($V3,[2,10]),{16:[1,25],18:[1,26]},{14:[1,27]},o($V4,[2,14]),{14:[1,28]},o($V4,[2,15]),o($V3,[2,13]),o($V3,[2,12])],
defaultActions: {3:[2,2],6:[2,1],10:[2,7]},
parseError: function parseError (str, hash) {

@@ -131,0 +134,0 @@ if (hash.recoverable) {

@@ -59,3 +59,8 @@ // grab our gulp packages

gulp.task('web-test', gulp.series('prod-test', function prodTestTask(done) {
gulp.task('analyze-tests', gulp.series('prod-test', function devTestTask(done) {
runCmd('analyze-tests', 'npm run analyze-tests');
done();
}));
gulp.task('web-test', gulp.series('analyze-tests', function prodTestTask(done) {
runCmd('web-test', 'npm run web-test');

@@ -62,0 +67,0 @@ done();

{
"name": "ez-string",
"version": "1.1.8",
"version": "1.1.9",
"description": "A string template renderer for JavaScript without memory leaks.",

@@ -5,0 +5,0 @@ "main": "ez-string.js",

@@ -70,3 +70,6 @@ 'use strict';

'bnf': {
'contents': [[ 'content EOF', '{ return $1; }' ]],
'contents': [
[ 'content EOF', '{ return $1; }' ],
[ 'EOF', '{ return ""; }' ],
],
'content': [

@@ -73,0 +76,0 @@ // template starts with text

@@ -35,3 +35,3 @@ 'use strict';

let numPasses = await driver.findElement(webdriver.By.css('li.passes em')).getText();
should.equal(98, numPasses);
should.equal(99, numPasses);

@@ -38,0 +38,0 @@ let numFails = await driver.findElement(webdriver.By.css('li.failures em')).getText();

@@ -28,2 +28,10 @@ 'use strict';

it('empty string', function(done) {
let tmpl = '';
let expected = '';
should.strictEqual(expected, render(tmpl));
done();
});
it('single line', function(done) {

@@ -30,0 +38,0 @@ let tmpl = 'abc';

Sorry, the diff of this file is not supported yet

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