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

async-tag

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-tag - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

18

cjs/index.js
'use strict';
Object.defineProperty(exports, '__esModule', {value: true}).default = () => {};
const {isArray} = Array;
const sync = (values, i) => {
const resolved = [];
for (const {length} = values; i < length; i++)
resolved.push(isArray(values[i]) ? sync(values[i], 0) : values[i]);
return Promise.all(resolved);
};
module.exports = tag => {
function invoke(template, values) {
return tag.apply(this, [template].concat(values));
}
return function (template) {
return sync(arguments, 1).then(invoke.bind(this, template));
};
};

2

es.js

@@ -1,1 +0,1 @@

self.asyncTag=function(e){"use strict";return e.default=()=>{},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
self.asyncTag=function(t){"use strict";const{isArray:n}=Array,r=(t,e)=>{const u=[];for(const{length:s}=t;e<s;e++)u.push(n(t[e])?r(t[e],0):t[e]);return Promise.all(u)};return t.default=t=>{function n(n,r){return t.apply(this,[n].concat(r))}return function(t){return r(arguments,1).then(n.bind(this,t))}},Object.defineProperty(t,"__esModule",{value:!0}),t}({});

@@ -1,1 +0,17 @@

export default () => {};
const {isArray} = Array;
const sync = (values, i) => {
const resolved = [];
for (const {length} = values; i < length; i++)
resolved.push(isArray(values[i]) ? sync(values[i], 0) : values[i]);
return Promise.all(resolved);
};
export default tag => {
function invoke(template, values) {
return tag.apply(this, [template].concat(values));
}
return function (template) {
return sync(arguments, 1).then(invoke.bind(this, template));
};
};
self.asyncTag = (function (exports) {
'use strict';
'use strict';
var index = (function () {});
var isArray = Array.isArray;
exports.default = index;
var sync = function sync(values, i) {
var resolved = [];
Object.defineProperty(exports, '__esModule', { value: true });
for (var length = values.length; i < length; i++) {
resolved.push(isArray(values[i]) ? sync(values[i], 0) : values[i]);
}
return exports;
return Promise.all(resolved);
};
var index = (function (tag) {
function invoke(template, values) {
return tag.apply(this, [template].concat(values));
}
return function (template) {
return sync(arguments, 1).then(invoke.bind(this, template));
};
});
exports.default = index;
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
}({}));

@@ -1,1 +0,1 @@

self.asyncTag=function(e){"use strict";return e.default=function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
self.asyncTag=function(n){"use strict";var r=Array.isArray,t=function n(t,e){for(var u=[],i=t.length;e<i;e++)u.push(r(t[e])?n(t[e],0):t[e]);return Promise.all(u)};return n.default=function(n){function r(r,t){return n.apply(this,[r].concat(t))}return function(n){return t(arguments,1).then(r.bind(this,n))}},Object.defineProperty(n,"__esModule",{value:!0}),n}({});
{
"name": "async-tag",
"version": "0.0.0",
"description": "",
"version": "0.0.1",
"description": "Resolves template literals tag values before applying a generic tag",
"main": "./cjs/index.js",
"scripts": {
"build": "npm run cjs && npm run rollup:es && npm run rollup:babel && npm run min && npm run test",
"cjs": "ascjs esm cjs",
"cjs": "ascjs --no-default esm cjs",
"rollup:es": "rollup --config rollup/es.config.js && sed -i.bck 's/^var /self./' es.js && rm -rf es.js.bck",

@@ -15,4 +15,10 @@ "rollup:babel": "rollup --config rollup/babel.config.js && sed -i.bck 's/^var /self./' index.js && rm -rf index.js.bck",

},
"keywords": [],
"author": "",
"keywords": [
"async",
"template",
"literal",
"tag",
"values"
],
"author": "Andrea Giammarchi",
"license": "ISC",

@@ -41,2 +47,2 @@ "devDependencies": {

"unpkg": "min.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