This commit is contained in:
sentsin
2017-08-21 08:50:25 +08:00
parent 06c11ba9cd
commit 7feaa4eca0
1899 changed files with 181363 additions and 22513 deletions

9
node_modules/sequencify/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,9 @@
.DS_Store
*.log
node_modules
build
*.node
components
*.orig
.idea
test

6
node_modules/sequencify/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,6 @@
language: node_js
node_js:
- 0.7
- 0.8
- 0.9
- 0.10

20
node_modules/sequencify/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
Copyright (c) 2013 [Richardson & Sons, LLC](http://richardsonandsons.com/)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

68
node_modules/sequencify/README.md generated vendored Normal file
View File

@@ -0,0 +1,68 @@
![status](https://secure.travis-ci.org/robrich/sequencify.png?branch=master)
Sequencify
==========
A module for sequencing tasks and dependencies
Usage
-----
```javascript
var sequencify = require('sequencify');
var items = {
a: {
name: 'a',
dep: []
// other properties as needed
},
b: {
name: 'b',
dep: ['a']
},
c: {
name: 'c',
dep: ['a']
},
d: {
name: 'd',
dep: ['c']
},
};
var names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all
var results = [];
sequencify(items, names, results);
console.log(results);
// ['a','b','c','d'];
```
LICENSE
-------
(MIT License)
Copyright (c) 2013 [Richardson & Sons, LLC](http://richardsonandsons.com/)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

46
node_modules/sequencify/index.js generated vendored Normal file
View File

@@ -0,0 +1,46 @@
/*jshint node:true */
"use strict";
var sequence = function (tasks, names, results, nest) {
var i, name, node, e, j;
nest = nest || [];
for (i = 0; i < names.length; i++) {
name = names[i];
// de-dup results
if (results.indexOf(name) === -1) {
node = tasks[name];
if (!node) {
e = new Error('task "'+name+'" is not defined');
e.missingTask = name;
e.taskList = [];
for (j in tasks) {
if (tasks.hasOwnProperty(j)) {
e.taskList.push(tasks[j].name);
}
}
throw e;
}
if (nest.indexOf(name) > -1) {
nest.push(name);
e = new Error('Recursive dependencies detected: '+nest.join(' -> '));
e.recursiveTasks = nest;
e.taskList = [];
for (j in tasks) {
if (tasks.hasOwnProperty(j)) {
e.taskList.push(tasks[j].name);
}
}
throw e;
}
if (node.dep.length) {
nest.push(name);
sequence(tasks, node.dep, results, nest); // recurse
nest.pop(name);
}
results.push(name);
}
}
};
module.exports = sequence;

96
node_modules/sequencify/package.json generated vendored Normal file
View File

@@ -0,0 +1,96 @@
{
"_args": [
[
{
"raw": "sequencify@~0.0.7",
"scope": null,
"escapedName": "sequencify",
"name": "sequencify",
"rawSpec": "~0.0.7",
"spec": ">=0.0.7 <0.1.0",
"type": "range"
},
"D:\\web\\layui\\res\\layui\\node_modules\\orchestrator"
]
],
"_from": "sequencify@>=0.0.7 <0.1.0",
"_id": "sequencify@0.0.7",
"_inCache": true,
"_location": "/sequencify",
"_npmUser": {
"name": "robrich",
"email": "robrich@robrich.org"
},
"_npmVersion": "1.3.15",
"_phantomChildren": {},
"_requested": {
"raw": "sequencify@~0.0.7",
"scope": null,
"escapedName": "sequencify",
"name": "sequencify",
"rawSpec": "~0.0.7",
"spec": ">=0.0.7 <0.1.0",
"type": "range"
},
"_requiredBy": [
"/orchestrator"
],
"_resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz",
"_shasum": "90cff19d02e07027fd767f5ead3e7b95d1e7380c",
"_shrinkwrap": null,
"_spec": "sequencify@~0.0.7",
"_where": "D:\\web\\layui\\res\\layui\\node_modules\\orchestrator",
"author": {
"name": "Rob Richardson",
"url": "http://robrich.org/"
},
"bugs": {
"url": "https://github.com/robrich/sequencify/issues"
},
"dependencies": {},
"description": "A module for sequencing tasks and dependencies",
"devDependencies": {
"mocha": "~1.16.1",
"should": "~2.1.1"
},
"directories": {},
"dist": {
"shasum": "90cff19d02e07027fd767f5ead3e7b95d1e7380c",
"tarball": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz"
},
"engines": {
"node": ">= 0.4"
},
"homepage": "https://github.com/robrich/sequencify",
"keywords": [
"task",
"sequence",
"sequencer",
"compose"
],
"licenses": [
{
"type": "MIT",
"url": "http://github.com/robrich/sequencify/raw/master/LICENSE"
}
],
"main": "./index.js",
"maintainers": [
{
"name": "robrich",
"email": "robrich@robrich.org"
}
],
"name": "sequencify",
"optionalDependencies": {},
"readme": "![status](https://secure.travis-ci.org/robrich/sequencify.png?branch=master)\r\n\r\nSequencify\r\n==========\r\n\r\nA module for sequencing tasks and dependencies\r\n\r\nUsage\r\n-----\r\n\r\n```javascript\r\nvar sequencify = require('sequencify');\r\n\r\nvar items = {\r\n a: {\r\n name: 'a',\r\n dep: []\r\n // other properties as needed\r\n },\r\n b: {\r\n name: 'b',\r\n dep: ['a']\r\n },\r\n c: {\r\n name: 'c',\r\n dep: ['a']\r\n },\r\n d: {\r\n name: 'd',\r\n dep: ['c']\r\n },\r\n};\r\n\r\nvar names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all\r\n\r\nvar results = [];\r\n\r\nsequencify(items, names, results);\r\n\r\nconsole.log(results);\r\n// ['a','b','c','d'];\r\n```\r\n\r\nLICENSE\r\n-------\r\n\r\n(MIT License)\r\n\r\nCopyright (c) 2013 [Richardson & Sons, LLC](http://richardsonandsons.com/)\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/robrich/sequencify.git"
},
"scripts": {
"test": "mocha"
},
"version": "0.0.7"
}