benchpressjs
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -35,3 +35,4 @@ (function (factory) { | ||
for (var i = 0; i < length; i += 1) { | ||
output += each(keys[i], i, length); | ||
var key = keys[i]; | ||
output += each(key, i, length, obj[key]); | ||
} | ||
@@ -38,0 +39,0 @@ |
@@ -1,3 +0,3 @@ | ||
/*! benchpressjs by psychobunny, built on 2018-07-14 */ | ||
/*! benchpressjs by psychobunny, built on 2018-07-16 */ | ||
"function"==typeof define&&define.amd&&define("benchpress",function(){var r=function(){"use strict";function r(e){return null==e||Array.isArray(e)&&0===e.length?"":e}function o(e,n){if(!e||"object"!=typeof e)return"";for(var t="",r=Object.keys(e),o=r.length,u=0;u<o;u+=1)t+=n(r[u],u,o);return t}function u(e,n,t,r){if("function"!=typeof n[t])return"";try{var o=n[t].apply(e,r);return o||""}catch(e){return""}}return"function"!=typeof Promise.try&&(Promise.try=function(n){return new Promise(function(e){return e(n())})}),function(e,n,t){return r(t(e,n,r,o,u)).toString()}}(),o="object"==typeof module&&module.exports?module.exports:{};o.runtime=r,o.helpers={},o.registerHelper=function(e,n){o.helpers[e]=n};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},t=function(e){return n[e]},u=/[&<>"'`=]/g;o.registerHelper("__escape",function(e){return null==e?"":e?e.toString().replace(u,t):String(e)}),o.cache={},o.globals={},o.setGlobal=function(e,n){o.globals[e]=n};var c=Object.assign||jQuery.extend;function i(e,n,t){return n=o.addGlobals(n||{}),Promise.try(function(){var r;return o.cache[e]=o.cache[e]||(r=e,new Promise(function(n,e){var t=o.loader(r,function(e){n(e)});t&&t.then&&t.then(n,e)})),o.cache[e]}).then(function(e){return t&&(e=e.blocks&&e.blocks[t]),e?r(o.helpers,n,e):""})}return o.addGlobals=function(e){return c({},o.globals,e)},o.flush=function(){o.cache={}},o.render=i,o.parse=function(e,n,t,r){if(r||"object"!=typeof n||"function"!=typeof t||(r=t,t=n,n=null),"function"!=typeof r)throw TypeError("Invalid Arguments: callback must be a function");e?i(e,t,n).then(function(e){return setTimeout(r,0,e)},function(e){return console.error(e)}):r("")},o.registerLoader=function(e){o.loader=e},o}); | ||
"function"==typeof define&&define.amd&&define("benchpress",function(){var t=function(){"use strict";function t(e){return null==e||Array.isArray(e)&&0===e.length?"":e}function o(e,n){if(!e||"object"!=typeof e)return"";for(var r="",t=Object.keys(e),o=t.length,u=0;u<o;u+=1){var c=t[u];r+=n(c,u,o,e[c])}return r}function u(e,n,r,t){if("function"!=typeof n[r])return"";try{var o=n[r].apply(e,t);return o||""}catch(e){return""}}return"function"!=typeof Promise.try&&(Promise.try=function(n){return new Promise(function(e){return e(n())})}),function(e,n,r){return t(r(e,n,t,o,u)).toString()}}(),o="object"==typeof module&&module.exports?module.exports:{};o.runtime=t,o.helpers={},o.registerHelper=function(e,n){o.helpers[e]=n};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r=function(e){return n[e]},u=/[&<>"'`=]/g;o.registerHelper("__escape",function(e){return null==e?"":e?e.toString().replace(u,r):String(e)}),o.cache={},o.globals={},o.setGlobal=function(e,n){o.globals[e]=n};var c=Object.assign||jQuery.extend;function i(e,n,r){return n=o.addGlobals(n||{}),Promise.try(function(){var t;return o.cache[e]=o.cache[e]||(t=e,new Promise(function(n,e){var r=o.loader(t,function(e){n(e)});r&&r.then&&r.then(n,e)})),o.cache[e]}).then(function(e){return r&&(e=e.blocks&&e.blocks[r]),e?t(o.helpers,n,e):""})}return o.addGlobals=function(e){return c({},o.globals,e)},o.flush=function(){o.cache={}},o.render=i,o.parse=function(e,n,r,t){if(t||"object"!=typeof n||"function"!=typeof r||(t=r,r=n,n=null),"function"!=typeof t)throw TypeError("Invalid Arguments: callback must be a function");e?i(e,r,n).then(function(e){return setTimeout(t,0,e)},function(e){return console.error(e)}):t("")},o.registerLoader=function(e){o.loader=e},o}); |
@@ -29,3 +29,4 @@ 'use strict'; | ||
for (let i = 0; i < length; i += 1) { | ||
output += each(keys[i], i, length); | ||
const key = keys[i]; | ||
output += each(key, i, length, obj[key]); | ||
} | ||
@@ -32,0 +33,0 @@ |
@@ -0,1 +1,60 @@ | ||
<!-- | ||
Detail changes here upon release | ||
Format: | ||
## Version <version> (<date>) | ||
### New | ||
- Large improvements | ||
- Features | ||
### Fixes | ||
- Bug fixes | ||
- Small improvements | ||
--> | ||
## Version 1.2.4 (2018-7-16) | ||
### Fixes | ||
- Rust compiler optimizations | ||
## Version 1.2.3 (2018-7-14) | ||
### Fixes | ||
- Update dependencies | ||
- Ignore unnecessary build artifacts | ||
## Version 1.2.2 (2018-7-14) | ||
### New | ||
- Re-implement the compiler in rust | ||
+ Speed up compile times by orders of magnitude | ||
+ Native bindings with JS fallback | ||
+ Fully compatible (except unsafe) | ||
+ Will attempt to compile on install | ||
+ If that fails, will try precompiled version | ||
+ If that fails, will fall back to JS version | ||
+ Add more tests to catch previously untested bugs | ||
+ Make the extra tokens algorithm more forgiving | ||
+ Add benchmarks for compilation | ||
+ Build binaries with CI | ||
+ benchchpress-rs in a separate repo with a git submodule here | ||
### Fixes | ||
- Use `new Function` instead of `vm.runInNewContext` (#77) | ||
+ Results in slight performance improvements client-side | ||
## Version 1.2.1 (2018-2-19) | ||
### Fixes | ||
- Empty template files will now render to an empty string (#75) | ||
## Version 1.2.0 (2017-11-24) | ||
@@ -2,0 +61,0 @@ |
@@ -26,3 +26,4 @@ 'use strict'; | ||
for (let i = 0; i < length; i += 1) { | ||
output += each(keys[i], i, length); | ||
const key = keys[i]; | ||
output += each(key, i, length, obj[key]); | ||
} | ||
@@ -29,0 +30,0 @@ |
{ | ||
"name": "benchpressjs", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"author": "psychobunny <psycho.bunny@hotmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "An ultralight and super fast templating framework", |
@@ -9,3 +9,3 @@ 'use strict'; | ||
'beta', | ||
'nightly' | ||
'nightly', | ||
]; | ||
@@ -17,7 +17,5 @@ | ||
'9', | ||
'10' | ||
'10', | ||
]; | ||
const indent = (str, n) => str.split('\n').map(x => `${' '.repeat(4)}${x}`).join('\n'); | ||
const testJobs = []; | ||
@@ -40,5 +38,7 @@ | ||
`).join('')} | ||
`.replace('${NODE_VERSIONS}', buildJobs.map(({ nodeVersion }) => ` | ||
` | ||
// eslint-disable-next-line no-template-curly-in-string | ||
.replace('${NODE_VERSIONS}', buildJobs.map(({ nodeVersion }) => ` | ||
- nodejs_version: ${nodeVersion} | ||
`.trimRight()).join('')); | ||
`.trimRight()).join('')); | ||
@@ -64,2 +64,2 @@ const travis = ` | ||
writeFileSync(join(__dirname, '../.travis.yml'), travis); | ||
writeFileSync(join(__dirname, '../appveyor.yml'), av); | ||
writeFileSync(join(__dirname, '../appveyor.yml'), av); |
@@ -6,3 +6,4 @@ 'use strict'; | ||
const copyFileSync = fs.copyFileSync || ((source, dest) => fs.writeFileSync(dest, fs.readFileSync(source))); | ||
const copyFileSync = fs.copyFileSync || | ||
((source, dest) => fs.writeFileSync(dest, fs.readFileSync(source))); | ||
@@ -9,0 +10,0 @@ const source = join(__dirname, '../native/index.node'); |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const { execSync: exec } = require('child_process'); | ||
@@ -14,6 +16,9 @@ | ||
exec('git rm pre-built/*.node'); | ||
} catch (e) {} | ||
} catch (e) { | ||
// ignore remove failures | ||
} | ||
exec('git commit --allow-empty -m "Build new binaries [publish binary]"'); | ||
exec(`git push -f -u origin ${branchName}_builds`); | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
console.error(e); | ||
@@ -20,0 +25,0 @@ } finally { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3048
46246659
109