atomic-promise
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -1,2 +0,2 @@ | ||
/*! atomic-promise v0.0.0 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! atomic-promise v0.0.1 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
require = function () { | ||
@@ -164,2 +164,13 @@ function r(e, n, t) { | ||
'atomic-promise' | ||
]); | ||
]); | ||
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define([], factory); | ||
} else if (typeof module === 'object' && module.exports) { | ||
module.exports = factory(); | ||
} else { | ||
root.returnExports = factory(); | ||
} | ||
}(typeof self !== 'undefined' ? self : this, function () { | ||
return require('atomic-promise'); | ||
})); |
@@ -1,2 +0,2 @@ | ||
/*! atomic-promise v0.0.0 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
require=function(){return function e(t,r,n){function o(s,c){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var h=r[s]={exports:{}};t[s][0].call(h.exports,function(e){return o(t[s][1][e]||e)},h,h.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}}()({1:[function(e,t,r){},{}],2:[function(e,t,r){arguments[4][1][0].apply(r,arguments)},{dup:1}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=function(){}},{}],4:[function(e,t,r){"use strict";var n;Object.defineProperty(r,"__esModule",{value:!0});const o=e("./noop"),i=Symbol(),s=Symbol(),c=Symbol();class u{constructor(e){this[Symbol.toStringTag]="Promise",this[n]=[];try{e(e=>{this[i]=this[i]||new a("resolved",e),this[c]()},e=>{this[i]=this[i]||new a("rejected",e),this[c]()})}catch(e){this[i]=new a("rejected",e),this[c]()}}static get[Symbol.species](){return u}static all(e){return e.reduce((e,t)=>e.then(e=>u.resolve(t).then(t=>e.concat([t]))),u.resolve([]))}static race(e){return new u(t=>void e.forEach(e=>void u.resolve(e).then(t,t)))}static resolve(e){return new u((t,r)=>h(e)?void e.then(t,r):void t(e))}static reject(e){return new u((t,r)=>void r(e))}[c](){const e=this[i];if(e)for(;this[s].length>0;){const[t,r]=this[s].shift();switch(e.state){case"resolved":h(e.value)?e.value.then(t,r):t(e.value);continue;case"rejected":r(e.value);continue}}}then(e,t){return e=e||u.resolve,t=t||u.reject,new u((r,n)=>{this[s].push([t=>{try{r(e(t))}catch(e){n(e)}},e=>void new u(r=>void r(t(e))).then(r,n)]),this[c]()})}catch(e){return this.then(void 0,e)}finally(e){return e=e||o.noop,this.then(t=>void e()||t,t=>void e()||u.reject(t))}}n=s,r.AtomicPromise=u;class a{constructor(e,t){this.state=e,this.value=t}}function h(e){return!!e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}},{"./noop":3}],"atomic-promise":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("spica/promise"))},{"spica/promise":4}]},{},[1,2,"atomic-promise"]); | ||
/*! atomic-promise v0.0.1 https://github.com/falsandtru/atomic-promise | (c) 2018, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
require=function(){return function e(t,r,n){function o(s,c){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var a=r[s]={exports:{}};t[s][0].call(a.exports,function(e){return o(t[s][1][e]||e)},a,a.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}}()({1:[function(e,t,r){},{}],2:[function(e,t,r){arguments[4][1][0].apply(r,arguments)},{dup:1}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=function(){}},{}],4:[function(e,t,r){"use strict";var n;Object.defineProperty(r,"__esModule",{value:!0});const o=e("./noop"),i=Symbol(),s=Symbol(),c=Symbol();class u{constructor(e){this[Symbol.toStringTag]="Promise",this[n]=[];try{e(e=>{this[i]=this[i]||new f("resolved",e),this[c]()},e=>{this[i]=this[i]||new f("rejected",e),this[c]()})}catch(e){this[i]=new f("rejected",e),this[c]()}}static get[Symbol.species](){return u}static all(e){return e.reduce((e,t)=>e.then(e=>u.resolve(t).then(t=>e.concat([t]))),u.resolve([]))}static race(e){return new u(t=>void e.forEach(e=>void u.resolve(e).then(t,t)))}static resolve(e){return new u((t,r)=>a(e)?void e.then(t,r):void t(e))}static reject(e){return new u((t,r)=>void r(e))}[c](){const e=this[i];if(e)for(;this[s].length>0;){const[t,r]=this[s].shift();switch(e.state){case"resolved":a(e.value)?e.value.then(t,r):t(e.value);continue;case"rejected":r(e.value);continue}}}then(e,t){return e=e||u.resolve,t=t||u.reject,new u((r,n)=>{this[s].push([t=>{try{r(e(t))}catch(e){n(e)}},e=>void new u(r=>void r(t(e))).then(r,n)]),this[c]()})}catch(e){return this.then(void 0,e)}finally(e){return e=e||o.noop,this.then(t=>void e()||t,t=>void e()||u.reject(t))}}n=s,r.AtomicPromise=u;class f{constructor(e,t){this.state=e,this.value=t}}function a(e){return!!e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}},{"./noop":3}],"atomic-promise":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("spica/promise"))},{"spica/promise":4}]},{},[1,2,"atomic-promise"]),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.returnExports=t()}("undefined"!=typeof self?self:this,function(){return require("atomic-promise")}); |
@@ -47,2 +47,15 @@ const gulp = require('gulp'); | ||
].join('\n'), | ||
module: ` | ||
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define([], factory); | ||
} else if (typeof module === 'object' && module.exports) { | ||
module.exports = factory(); | ||
} else { | ||
root.returnExports = factory(); | ||
} | ||
}(typeof self !== 'undefined' ? self : this, function () { | ||
return require('atomic-promise'); | ||
})); | ||
`, | ||
clean: { | ||
@@ -93,2 +106,3 @@ dist: 'dist' | ||
.pipe($.header(config.banner)) | ||
.pipe($.footer(config.module)) | ||
.pipe(gulp.dest(config.ts.dist.dest)) | ||
@@ -95,0 +109,0 @@ .pipe($.rename({ extname: '.min.js' })) |
{ | ||
"name": "atomic-promise", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Promise with no delay.", | ||
@@ -28,3 +28,5 @@ "private": false, | ||
], | ||
"dependencies": {}, | ||
"dependencies": { | ||
"spica": "0.0.182" | ||
}, | ||
"devDependencies": { | ||
@@ -36,2 +38,3 @@ "@types/mocha": "^5.2.0", | ||
"gulp": "^3.9.1", | ||
"gulp-footer": "^2.0.1", | ||
"gulp-header": "^2.0.5", | ||
@@ -57,3 +60,2 @@ "gulp-load-plugins": "^1.5.0", | ||
"run-sequence": "^2.2.1", | ||
"spica": "0.0.182", | ||
"tsify": "^4.0.0", | ||
@@ -60,0 +62,0 @@ "typescript": "3.0.0-dev.20180522", |
Sorry, the diff of this file is too big to display
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
481314
13507
1
+ Addedspica@0.0.182
+ Addedspica@0.0.182(transitive)