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

modulejs

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modulejs - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

2

dist/modulejs.js

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

/*! modulejs v2.10.0 - undefined */
/*! modulejs v2.11.0 - undefined */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

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

/*! modulejs v2.10.0 - undefined */
/*! modulejs v2.11.0 - undefined */
((n,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("modulejs",[],e):"object"==typeof exports?exports.modulejs=e():n.modulejs=e()})("undefined"!=typeof self?self:this,()=>{return r=[(n,e,t)=>{function r(){function n(){var o={};return c(i,function(n,e){o[e]={deps:n.deps.slice(),reqs:s(i,null,e),init:u(t,e)}}),c(i,function(n,t){var r=[];c(i,function(n,e){0<=o[e].reqs.indexOf(t)&&r.push(e)}),o[t].reqd=r}),o}var i={},t={};return{create:r,define:function(n,e,t){var r;void 0===t&&(e=(r=[[],e])[0],t=r[1]),o("string"==typeof n,"id must be string: ".concat(n)),o(!u(i,n),"id already defined: ".concat(n)),o(Array.isArray(e),"deps must be array: ".concat(n)),i[n]={id:n,deps:e,fn:"function"==typeof t?t:function(){return t}}},log:function(r){var o="\n";return c(n(),function(n,e){var t=r?n.reqd:n.reqs;o+="".concat(n.init?"*":" "," ").concat(e," -> [ ").concat(t.join(", ")," ]\n")}),o},require:function(n,e){return o("string"==typeof n,"id must be string: ".concat(n)),s(i,e||t,n)},state:n,_d:i,_i:t}}var t=t(1),o=t.assert,c=t.for_own,u=t.has,s=t.resolve;n.exports=r()},n=>{function u(n,e){if(!n)throw new Error("[modulejs] ".concat(e))}function s(n,e){return(n||{}).hasOwnProperty(e)}function f(n){var t={};return n.filter(function(n){var e=!t[n];return t[n]=1,e})}function a(t,r,n,o){var i,e,c=!r;return!c&&s(r,n)?r[n]:(e=t[n],u(e,"id not defined: ".concat(n)),(o=(o||[]).slice()).push(n),i=[],e.deps.forEach(function(n){u(o.indexOf(n)<0,"circular dependencies: ".concat(n," in ").concat(o));var e=a(t,r,n,o);c?(i=i.concat(e)).push(n):i.push(e)}),c?f(i):(e=e.fn.apply(void 0,i),r[n]=e))}n.exports={assert:u,for_own:function(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})},has:s,resolve:a,uniq:f}}],o={},function n(e){var t=o[e];return void 0===t&&(t=o[e]={exports:{}},r[e](t,t.exports,n)),t.exports}(0);var r,o});
{
"name": "modulejs",
"version": "2.10.0",
"version": "2.11.0",
"description": "Lightweight JavaScript module system.",

@@ -5,0 +5,0 @@ "author": "Lars Jung <lrsjng@gmail.com> (https://larsjung.de)",

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