Comparing version 0.0.20151127 to 0.0.20151203
@@ -166,2 +166,3 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
},{"./Module":1,"zero-lang/array":4,"zero-lang/type":8}],3:[function(require,module,exports){ | ||
'use strict'; | ||
@@ -172,4 +173,2 @@ /* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */ | ||
'use strict'; | ||
var arrayUtils = require('zero-lang/array'); | ||
@@ -238,6 +237,8 @@ | ||
},{"zero-lang/array":4}],4:[function(require,module,exports){ | ||
'use strict'; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/* jshint esnext: true, loopfunc: true */ | ||
'use strict'; | ||
var checkType = require('./type'); | ||
@@ -251,3 +252,3 @@ var numberUtils = require('./number'); | ||
function isArrayLike(arr) { | ||
return typeof arr === 'object' && numberUtils.isFinite(arr.length); | ||
return (typeof arr === 'undefined' ? 'undefined' : _typeof(arr)) === 'object' && numberUtils.isFinite(arr.length); | ||
} | ||
@@ -502,16 +503,18 @@ function toArray(arr) { | ||
(function (global){ | ||
'use strict'; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */ | ||
/* global window, global, self */ | ||
'use strict'; | ||
var undefStr = 'undefined'; | ||
module.exports = typeof window !== undefStr ? window : typeof global !== undefStr ? global : typeof self !== undefStr ? self : {}; | ||
module.exports = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) !== undefStr ? window : (typeof global === 'undefined' ? 'undefined' : _typeof(global)) !== undefStr ? global : (typeof self === 'undefined' ? 'undefined' : _typeof(self)) !== undefStr ? self : {}; | ||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) | ||
},{}],6:[function(require,module,exports){ | ||
'use strict'; | ||
/* jshint esnext: true, loopfunc: true */ | ||
'use strict'; | ||
var checkType = require('./type'); | ||
@@ -569,6 +572,6 @@ | ||
},{"./type":8}],7:[function(require,module,exports){ | ||
'use strict'; | ||
/* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */ | ||
'use strict'; | ||
var checkType = require('./type'); | ||
@@ -693,6 +696,8 @@ var getType = checkType.getType; | ||
},{"./array":4,"./type":8}],8:[function(require,module,exports){ | ||
'use strict'; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/* jshint esnext: true, loopfunc: true */ | ||
'use strict'; | ||
var toString = ({}).toString; | ||
@@ -711,3 +716,3 @@ var isType = function isType(obj, type) { | ||
isArrayLike: function isArrayLike(obj) { | ||
return typeof obj === 'object' && isFinite(obj.length); | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && isFinite(obj.length); | ||
}, | ||
@@ -750,3 +755,3 @@ isBoolean: function isBoolean(obj) { | ||
isObject: function isObject(obj) { | ||
var type = typeof obj; | ||
var type = typeof obj === 'undefined' ? 'undefined' : _typeof(obj); | ||
return type === 'function' || type === 'object' && !!obj; | ||
@@ -753,0 +758,0 @@ } |
@@ -281,2 +281,3 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
},{"./Module":1,"./define":2,"./path":10,"./request":11,"zero-lang/array":5,"zero-lang/type":9}],4:[function(require,module,exports){ | ||
'use strict'; | ||
@@ -287,4 +288,2 @@ /* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */ | ||
'use strict'; | ||
var arrayUtils = require('zero-lang/array'); | ||
@@ -353,6 +352,8 @@ | ||
},{"zero-lang/array":5}],5:[function(require,module,exports){ | ||
'use strict'; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/* jshint esnext: true, loopfunc: true */ | ||
'use strict'; | ||
var checkType = require('./type'); | ||
@@ -366,3 +367,3 @@ var numberUtils = require('./number'); | ||
function isArrayLike(arr) { | ||
return typeof arr === 'object' && numberUtils.isFinite(arr.length); | ||
return (typeof arr === 'undefined' ? 'undefined' : _typeof(arr)) === 'object' && numberUtils.isFinite(arr.length); | ||
} | ||
@@ -617,16 +618,18 @@ function toArray(arr) { | ||
(function (global){ | ||
'use strict'; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */ | ||
/* global window, global, self */ | ||
'use strict'; | ||
var undefStr = 'undefined'; | ||
module.exports = typeof window !== undefStr ? window : typeof global !== undefStr ? global : typeof self !== undefStr ? self : {}; | ||
module.exports = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) !== undefStr ? window : (typeof global === 'undefined' ? 'undefined' : _typeof(global)) !== undefStr ? global : (typeof self === 'undefined' ? 'undefined' : _typeof(self)) !== undefStr ? self : {}; | ||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) | ||
},{}],7:[function(require,module,exports){ | ||
'use strict'; | ||
/* jshint esnext: true, loopfunc: true */ | ||
'use strict'; | ||
var checkType = require('./type'); | ||
@@ -684,6 +687,6 @@ | ||
},{"./type":9}],8:[function(require,module,exports){ | ||
'use strict'; | ||
/* jshint node: true, esnext: true, loopfunc: true, undef: true, unused: true */ | ||
'use strict'; | ||
var checkType = require('./type'); | ||
@@ -808,6 +811,8 @@ var getType = checkType.getType; | ||
},{"./array":5,"./type":9}],9:[function(require,module,exports){ | ||
'use strict'; | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
/* jshint esnext: true, loopfunc: true */ | ||
'use strict'; | ||
var toString = ({}).toString; | ||
@@ -826,3 +831,3 @@ var isType = function isType(obj, type) { | ||
isArrayLike: function isArrayLike(obj) { | ||
return typeof obj === 'object' && isFinite(obj.length); | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && isFinite(obj.length); | ||
}, | ||
@@ -865,3 +870,3 @@ isBoolean: function isBoolean(obj) { | ||
isObject: function isObject(obj) { | ||
var type = typeof obj; | ||
var type = typeof obj === 'undefined' ? 'undefined' : _typeof(obj); | ||
return type === 'function' || type === 'object' && !!obj; | ||
@@ -868,0 +873,0 @@ } |
{ | ||
"name": "amd-module", | ||
"title": "amd-module", | ||
"description": "", | ||
"homepage": "https://github.com/leungwensen/amd-module", | ||
"version": "0.0.20151127", | ||
"main": "define.js", | ||
"license": "MIT", | ||
"author": { | ||
"description": "team of amd-module", | ||
"url": "https://github.com/leungwensen/amd-module/graphs/contributors" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/leungwensen/amd-module/issues" | ||
}, | ||
"dependencies": { | ||
"babel-preset-es2015": "*", | ||
"zero-encoding": "*", | ||
"zero-events": "*", | ||
"zero-fmt": "*", | ||
"zero-lang": "*" | ||
}, | ||
"devDependencies": { | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
}, | ||
"keywords": [ | ||
"amd", | ||
"amd-module", | ||
"define" | ||
], | ||
"repository": { | ||
"type": "https", | ||
"url": "https://github.com/leungwensen/amd-module.git" | ||
}, | ||
"scripts": { | ||
} | ||
"name": "amd-module", | ||
"title": "amd-module", | ||
"description": "", | ||
"homepage": "https://github.com/leungwensen/amd-module", | ||
"version": "0.0.20151203", | ||
"main": "define.js", | ||
"license": "MIT", | ||
"author": { | ||
"description": "team of amd-module", | ||
"url": "https://github.com/leungwensen/amd-module/graphs/contributors" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/leungwensen/amd-module/issues" | ||
}, | ||
"dependencies": { | ||
"zero-encoding": "^0.0.20151202", | ||
"zero-events": "^0.0.20151202", | ||
"zero-fmt": "^0.0.20151202", | ||
"zero-lang": "^0.0.20151202" | ||
}, | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.1.18" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
}, | ||
"keywords": [ | ||
"amd", | ||
"amd-module", | ||
"define" | ||
], | ||
"repository": { | ||
"type": "https", | ||
"url": "https://github.com/leungwensen/amd-module.git" | ||
}, | ||
"spm": { | ||
"main": "define.js", | ||
"dependencies": { | ||
"zero-encoding": "^0.0.20151202", | ||
"zero-events": "^0.0.20151202", | ||
"zero-fmt": "^0.0.20151202", | ||
"zero-lang": "^0.0.20151202" | ||
} | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
# amd-module | ||
@@ -5,5 +6,41 @@ | ||
## installation | ||
```shell | ||
npm install amd-module --save | ||
``` | ||
## usage | ||
in | ||
### browser | ||
#### standalone mode | ||
```html | ||
<script src="$path/to/this/package/dist/loader.js"></script> | ||
``` | ||
#### using with CommonJS | ||
```javascript | ||
require('amd-module/loader'); // then the 'define' function is available | ||
``` | ||
here is a [demo](https://github.com/leungwensen/amd-module/tree/master/demo) | ||
### nodejs (no loader available for now, not recomended) | ||
```javascript | ||
var define = require('amd-module/define'); | ||
define('my/awesome/amd/module', [ | ||
'amd-module/Module' | ||
], function( | ||
Module | ||
) { | ||
Module.on('module-meta-got', function(meta){ | ||
console.log(meta); | ||
}); | ||
}); | ||
``` | ||
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 5 instances in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
83040
4
24
2558
1
46
1
- Removedbabel-preset-es2015@*
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbabel-code-frame@6.26.0(transitive)
- Removedbabel-helper-call-delegate@6.24.1(transitive)
- Removedbabel-helper-define-map@6.26.0(transitive)
- Removedbabel-helper-function-name@6.24.1(transitive)
- Removedbabel-helper-get-function-arity@6.24.1(transitive)
- Removedbabel-helper-hoist-variables@6.24.1(transitive)
- Removedbabel-helper-optimise-call-expression@6.24.1(transitive)
- Removedbabel-helper-regex@6.26.0(transitive)
- Removedbabel-helper-replace-supers@6.24.1(transitive)
- Removedbabel-messages@6.23.0(transitive)
- Removedbabel-plugin-check-es2015-constants@6.22.0(transitive)
- Removedbabel-plugin-transform-es2015-arrow-functions@6.22.0(transitive)
- Removedbabel-plugin-transform-es2015-block-scoped-functions@6.22.0(transitive)
- Removedbabel-plugin-transform-es2015-block-scoping@6.26.0(transitive)
- Removedbabel-plugin-transform-es2015-classes@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-computed-properties@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-destructuring@6.23.0(transitive)
- Removedbabel-plugin-transform-es2015-duplicate-keys@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-for-of@6.23.0(transitive)
- Removedbabel-plugin-transform-es2015-function-name@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-literals@6.22.0(transitive)
- Removedbabel-plugin-transform-es2015-modules-amd@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-modules-commonjs@6.26.2(transitive)
- Removedbabel-plugin-transform-es2015-modules-systemjs@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-modules-umd@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-object-super@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-parameters@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-shorthand-properties@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-spread@6.22.0(transitive)
- Removedbabel-plugin-transform-es2015-sticky-regex@6.24.1(transitive)
- Removedbabel-plugin-transform-es2015-template-literals@6.22.0(transitive)
- Removedbabel-plugin-transform-es2015-typeof-symbol@6.23.0(transitive)
- Removedbabel-plugin-transform-es2015-unicode-regex@6.24.1(transitive)
- Removedbabel-plugin-transform-regenerator@6.26.0(transitive)
- Removedbabel-plugin-transform-strict-mode@6.24.1(transitive)
- Removedbabel-preset-es2015@6.24.1(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-template@6.26.0(transitive)
- Removedbabel-traverse@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedbabylon@6.18.0(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcore-js@2.6.12(transitive)
- Removeddebug@2.6.9(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesutils@2.0.3(transitive)
- Removedglobals@9.18.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjsesc@0.5.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedms@2.0.0(transitive)
- Removedprivate@0.1.8(transitive)
- Removedregenerate@1.4.2(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedregenerator-transform@0.10.1(transitive)
- Removedregexpu-core@2.0.0(transitive)
- Removedregjsgen@0.2.0(transitive)
- Removedregjsparser@0.1.5(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedto-fast-properties@1.0.3(transitive)
- Removedzero-lang@0.2.1(transitive)
Updatedzero-encoding@^0.0.20151202
Updatedzero-events@^0.0.20151202
Updatedzero-fmt@^0.0.20151202
Updatedzero-lang@^0.0.20151202