@ungap/template-tag-arguments
Advanced tools
Comparing version 0.3.1 to 0.4.0
'use strict'; | ||
const unique = (require('@ungap/template-literal')); | ||
const unique = (m => m.__esModule ? /* istanbul ignore next */ m.default : /* istanbul ignore next */ m)(require('@ungap/template-literal')); | ||
@@ -12,1 +12,11 @@ Object.defineProperty(exports, '__esModule', {value: true}).default = function (template) { | ||
}; | ||
/** | ||
* best benchmark goes here | ||
* https://jsperf.com/tta-bench | ||
* I should probably have an @ungap/template-literal-es too | ||
export default (...args) => { | ||
args[0] = unique(args[0]); | ||
return args; | ||
}; | ||
*/ |
@@ -11,1 +11,11 @@ import unique from '@ungap/template-literal'; | ||
}; | ||
/** | ||
* best benchmark goes here | ||
* https://jsperf.com/tta-bench | ||
* I should probably have an @ungap/template-literal-es too | ||
export default (...args) => { | ||
args[0] = unique(args[0]); | ||
return args; | ||
}; | ||
*/ |
10
index.js
@@ -101,1 +101,11 @@ var templateLiteral = (function (exports) { | ||
}; | ||
/** | ||
* best benchmark goes here | ||
* https://jsperf.com/tta-bench | ||
* I should probably have an @ungap/template-literal-es too | ||
(...args) => { | ||
args[0] = unique(args[0]); | ||
return args; | ||
}; | ||
*/ |
var templateLiteral=function(){"use strict"; | ||
/*! (c) Andrea Giammarchi - ISC */var e={};try{e.WeakMap=WeakMap}catch(t){e.WeakMap=function(e,t){var r=t.defineProperty,n=t.hasOwnProperty,a=i.prototype;return a.delete=function(t){return this.has(t)&&delete t[this._]},a.get=function(t){return this.has(t)?t[this._]:void 0},a.has=function(t){return n.call(t,this._)},a.set=function(t,e){return r(t,this._,{configurable:!0,value:e}),this},i;function i(t){r(this,"_",{value:"_@ungap/weakmap"+e++}),t&&t.forEach(u,this)}function u(t){this.set(t[0],t[1])}}(Math.random(),Object)}var s=e.WeakMap,c="object"!=typeof document,f=function(t){var e,r="raw",n=(e=(document.defaultView.navigator||{}).userAgent,/(Firefox|Safari)\/(\d+)/.test(e)&&!/(Chrom[eium]+|Android)\/(\d+)/.test(e)),a=!(r in t)||t.propertyIsEnumerable(r)||!Object.isFrozen(t[r]);if(n||a){var i={},u=function(t){for(var e=".",r=0;r<t.length;r++)e+=t[r].length+"."+t[r];return i[e]||(i[e]=t)};if(a)f=u;else{var o=new s;f=function(t){return o.get(t)||function(t,e){return o.set(t,e),e}(t,u(t))}}}else c=!0;return h(t)};function h(t){return c?t:f(t)}return h}();function templateTagArguments(t){for(var e=arguments.length,r=[templateLiteral(t)],n=1;n<e;)r.push(arguments[n++]);return r} | ||
/*! (c) Andrea Giammarchi - ISC */var e={};try{e.WeakMap=WeakMap}catch(t){e.WeakMap=function(e,t){var r=t.defineProperty,n=t.hasOwnProperty,a=i.prototype;return a.delete=function(t){return this.has(t)&&delete t[this._]},a.get=function(t){return this.has(t)?t[this._]:void 0},a.has=function(t){return n.call(t,this._)},a.set=function(t,e){return r(t,this._,{configurable:!0,value:e}),this},i;function i(t){r(this,"_",{value:"_@ungap/weakmap"+e++}),t&&t.forEach(u,this)}function u(t){this.set(t[0],t[1])}}(Math.random(),Object)}var s=e.WeakMap,c="object"!=typeof document,f=function(t){var e,r="raw",n=(e=(document.defaultView.navigator||{}).userAgent,/(Firefox|Safari)\/(\d+)/.test(e)&&!/(Chrom[eium]+|Android)\/(\d+)/.test(e)),a=!(r in t)||t.propertyIsEnumerable(r)||!Object.isFrozen(t[r]);if(n||a){var i={},u=function(t){for(var e=".",r=0;r<t.length;r++)e+=t[r].length+"."+t[r];return i[e]||(i[e]=t)};if(a)f=u;else{var o=new s;f=function(t){return o.get(t)||(r=u(e=t),o.set(e,r),r);var e,r}}}else c=!0;return h(t)};function h(t){return c?t:f(t)}return h}();function templateTagArguments(t){for(var e=arguments.length,r=[templateLiteral(t)],n=1;n<e;)r.push(arguments[n++]);return r} |
{ | ||
"name": "@ungap/template-tag-arguments", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Normalizes tagged arguments granting a unique template", | ||
"main": "cjs/index.js", | ||
"module": "esm/index.js", | ||
"main": "./cjs/index.js", | ||
"module": "./esm/index.js", | ||
"unpkg": "min.js", | ||
@@ -16,4 +16,4 @@ "scripts": { | ||
"size": "cat index.js | wc -c && cat min.js | wc -c && gzip -c9 min.js | wc -c && cat min.js | brotli | wc -c", | ||
"coveralls": "cat ./coverage/lcov.info | coveralls", | ||
"test": "istanbul cover test/index.js" | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"test": "nyc node test/index.js" | ||
}, | ||
@@ -29,10 +29,15 @@ "keywords": [ | ||
"devDependencies": { | ||
"ascjs": "^2.5.1", | ||
"coveralls": "^3.0.2", | ||
"istanbul": "^0.4.5", | ||
"uglify-js": "^3.4.9" | ||
"ascjs": "^4.0.0", | ||
"coveralls": "^3.1.0", | ||
"nyc": "^15.0.1", | ||
"uglify-js": "^3.9.1" | ||
}, | ||
"dependencies": { | ||
"@ungap/template-literal": "^0.4.1" | ||
"@ungap/template-literal": "^0.5.0" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"import": "./esm/index.js", | ||
"default": "./cjs/index.js" | ||
} | ||
} |
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
8249
7
134
Yes
+ Added@ungap/template-literal@0.5.0(transitive)
- Removed@ungap/template-literal@0.4.1(transitive)