Comparing version 2.5.0 to 2.6.0
@@ -1,2 +0,2 @@ | ||
/*! modulejs v2.5.0 - https://larsjung.de/modulejs/ */ | ||
/*! modulejs v2.6.0 - https://larsjung.de/modulejs/ */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! modulejs v2.5.0 - https://larsjung.de/modulejs/ */ | ||
/*! modulejs v2.6.0 - https://larsjung.de/modulejs/ */ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("modulejs",[],n):"object"==typeof exports?exports.modulejs=n():e.modulejs=n()}("undefined"!=typeof self?self:this,function(){return function(t){var r={};function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=r,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(n,e){if(1&e&&(n=o(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)o.d(t,r,function(e){return n[e]}.bind(null,r));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="",o(o.s=0)}([function(e,n,t){var r=t(1),o=r.assert,i=r.forOwn,c=r.has,f=r.resolve;e.exports=function e(){var u={},t={},n=function(){var o={};return i(u,function(e,n){o[n]={deps:e.deps.slice(),reqs:f(u,null,n),init:c(t,n)}}),i(u,function(e,t){var r=[];i(u,function(e,n){0<=o[n].reqs.indexOf(t)&&r.push(n)}),o[t].reqd=r}),o};return{create:e,define:function(e,n,t){if(void 0===t){var r=[[],n];n=r[0],t=r[1]}o("string"==typeof e,"id must be string: ".concat(e)),o(!c(u,e),"id already defined: ".concat(e)),o(Array.isArray(n),"deps must be array: ".concat(e)),u[e]={id:e,deps:n,fn:"function"==typeof t?t:function(){return t}}},log:function(r){var o="\n";return i(n(),function(e,n){var t=r?e.reqd:e.reqs;o+="".concat(e.init?"*":" "," ").concat(n," -> [ ").concat(t.join(", ")," ]\n")}),o},require:function(e,n){return o("string"==typeof e,"id must be string: ".concat(e)),f(u,n||t,e)},state:n,_d:u,_i:t}}()},function(e,n){var a=function(e,n){if(!e)throw new Error("[modulejs] ".concat(n))},s=function(e,n){return(e||{}).hasOwnProperty(n)},d=function(e){var t={};return e.filter(function(e){var n=!t[e];return t[e]=1,n})};e.exports={assert:a,forOwn:function(n,t){Object.keys(n).forEach(function(e){return t(n[e],e)})},has:s,resolve:function t(r,o,e,u){var i=!o;if(!i&&s(o,e))return o[e];var n=r[e];a(n,"id not defined: ".concat(e)),(u=(u||[]).slice()).push(e);var c=[];if(n.deps.forEach(function(e){a(u.indexOf(e)<0,"circular dependencies: ".concat(e," in ").concat(u));var n=t(r,o,e,u);i?(c=c.concat(n)).push(e):c.push(n)}),i)return d(c);var f=n.fn.apply(void 0,c);return o[e]=f},uniq:d}}])}); |
24
ghu.js
@@ -26,26 +26,4 @@ const {resolve, join} = require('path'); | ||
ghu.task('build:script', runtime => { | ||
const webpackConfig = { | ||
mode: 'none', | ||
output: { | ||
library: NAME, | ||
libraryTarget: 'umd', | ||
umdNamedDefine: true, | ||
globalObject: '(typeof self !== \'undefined\' ? self : this)' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
include: [LIB], | ||
loader: 'babel-loader', | ||
query: { | ||
cacheDirectory: true, | ||
presets: ['@babel/preset-env'] | ||
} | ||
} | ||
] | ||
} | ||
}; | ||
return read(`${LIB}/${NAME}.js`) | ||
.then(webpack(webpackConfig, {showStats: false})) | ||
.then(webpack(webpack.cfg_umd(NAME, [LIB]), {showStats: false})) | ||
.then(wrap(runtime.commentJs)) | ||
@@ -52,0 +30,0 @@ .then(write(`${DIST}/${NAME}.js`, {overwrite: true})) |
{ | ||
"name": "modulejs", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Lightweight JavaScript module system.", | ||
@@ -23,9 +23,9 @@ "homepage": "https://larsjung.de/modulejs/", | ||
"devDependencies": { | ||
"@babel/core": "7.4.0", | ||
"@babel/preset-env": "7.4.2", | ||
"@babel/core": "7.4.3", | ||
"@babel/preset-env": "7.4.3", | ||
"babel-loader": "8.0.5", | ||
"eslint": "5.16.0", | ||
"ghu": "0.15.0", | ||
"ghu": "0.17.0", | ||
"isparta": "4.1.1", | ||
"scar": "1.4.0" | ||
"scar": "1.5.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
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
47285
1047