uapte
This commit is contained in:
9
node_modules/sequencify/.npmignore
generated
vendored
Normal file
9
node_modules/sequencify/.npmignore
generated
vendored
Normal 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
6
node_modules/sequencify/.travis.yml
generated
vendored
Normal 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
20
node_modules/sequencify/LICENSE
generated
vendored
Normal 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
68
node_modules/sequencify/README.md
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||

|
||||
|
||||
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
46
node_modules/sequencify/index.js
generated
vendored
Normal 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;
|
||||
65
node_modules/sequencify/package.json
generated
vendored
Normal file
65
node_modules/sequencify/package.json
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"_from": "sequencify@~0.0.7",
|
||||
"_id": "sequencify@0.0.7",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-kM/xnQLgcCf9dn9erT57ldHnOAw=",
|
||||
"_location": "/sequencify",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "sequencify@~0.0.7",
|
||||
"name": "sequencify",
|
||||
"escapedName": "sequencify",
|
||||
"rawSpec": "~0.0.7",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~0.0.7"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/orchestrator"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/sequencify/-/sequencify-0.0.7.tgz",
|
||||
"_shasum": "90cff19d02e07027fd767f5ead3e7b95d1e7380c",
|
||||
"_spec": "sequencify@~0.0.7",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro/node_modules/orchestrator",
|
||||
"author": {
|
||||
"name": "Rob Richardson",
|
||||
"url": "http://robrich.org/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/robrich/sequencify/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "A module for sequencing tasks and dependencies",
|
||||
"devDependencies": {
|
||||
"mocha": "~1.16.1",
|
||||
"should": "~2.1.1"
|
||||
},
|
||||
"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",
|
||||
"name": "sequencify",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/robrich/sequencify.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "0.0.7"
|
||||
}
|
||||
Reference in New Issue
Block a user