Socket
Socket
Sign inDemoInstall

@ungap/template-tag-arguments

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

@ungap/template-tag-arguments - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

cjs/package.json

12

cjs/index.js
'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;
};
*/

@@ -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;
};
*/

2

min.js
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"
}
}
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