collect-your-stuff 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +1676 -0
- package/browser/collect-your-stuff.js +18987 -0
- package/browser/collect-your-stuff.min.js +1 -0
- package/dist/collections/arrayable/ArrayElement.js +95 -0
- package/dist/collections/arrayable/ArrayElement.min.js +1 -0
- package/dist/collections/arrayable/Arrayable.js +253 -0
- package/dist/collections/arrayable/Arrayable.min.js +1 -0
- package/dist/collections/doubly-linked-llist/DoubleLinker.js +90 -0
- package/dist/collections/doubly-linked-llist/DoubleLinker.min.js +1 -0
- package/dist/collections/doubly-linked-llist/DoublyLinkedList.js +234 -0
- package/dist/collections/doubly-linked-llist/DoublyLinkedList.min.js +1 -0
- package/dist/collections/linked-list/LinkedList.js +256 -0
- package/dist/collections/linked-list/LinkedList.min.js +1 -0
- package/dist/collections/linked-list/Linker.js +100 -0
- package/dist/collections/linked-list/Linker.min.js +1 -0
- package/dist/collections/linked-tree-list/LinkedTreeList.js +96 -0
- package/dist/collections/linked-tree-list/LinkedTreeList.min.js +1 -0
- package/dist/collections/linked-tree-list/TreeLinker.js +112 -0
- package/dist/collections/linked-tree-list/TreeLinker.min.js +1 -0
- package/dist/collections/queue/Queue.js +163 -0
- package/dist/collections/queue/Queue.min.js +1 -0
- package/dist/collections/queue/Queueable.js +177 -0
- package/dist/collections/queue/Queueable.min.js +1 -0
- package/dist/collections/stack/Stack.js +141 -0
- package/dist/collections/stack/Stack.min.js +1 -0
- package/dist/collections/stack/Stackable.js +85 -0
- package/dist/collections/stack/Stackable.min.js +1 -0
- package/dist/main.js +44 -0
- package/dist/main.min.js +1 -0
- package/dist/recipes/Runnable.js +67 -0
- package/dist/recipes/Runnable.min.js +1 -0
- package/dist/recipes/recipes.js +23 -0
- package/dist/recipes/recipes.min.js +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;class Runnable{data=null;constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.data=t}get task(){return"function"==typeof this.data?this.data:()=>this.data}run(){return this.task()}}Runnable.isRunnable=t=>void 0===t?void 0 instanceof Runnable:"object"==typeof t&&("function"==typeof t.task&&"function"==typeof t.run);var _default=exports.default=Runnable;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
var _Runnable = _interopRequireDefault(require('./Runnable'))
|
|
8
|
+
function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default: obj } }
|
|
9
|
+
/**
|
|
10
|
+
* @file sample classes which follow a pattern (have certain members or methods).
|
|
11
|
+
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
12
|
+
* @version 1.0.0
|
|
13
|
+
* @memberOf module:collect-your-stuff
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* List of class declarations that can be used to specify attributes for a style of object / class.
|
|
18
|
+
* @type {{Runnable: Runnable}}
|
|
19
|
+
*/
|
|
20
|
+
const recipes = {
|
|
21
|
+
Runnable: _Runnable.default
|
|
22
|
+
}
|
|
23
|
+
var _default = exports.default = recipes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _Runnable=_interopRequireDefault(require("./Runnable"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const recipes={Runnable:_Runnable.default};var _default=exports.default=recipes;
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "collect-your-stuff",
|
|
3
|
+
"description": "Use a variety of collections to collect your stuff when building code.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"main": "dist/main.js",
|
|
6
|
+
"author": "Joshua Heagle",
|
|
7
|
+
"license": "GNU",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"collections",
|
|
10
|
+
"linkedlist",
|
|
11
|
+
"map",
|
|
12
|
+
"nodelist",
|
|
13
|
+
"arraylist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "gulp build",
|
|
17
|
+
"dev": "gulp",
|
|
18
|
+
"readme": "gulp readme",
|
|
19
|
+
"test": "gulp testFull",
|
|
20
|
+
"test:quick": "gulp testQuick",
|
|
21
|
+
"watch": "gulp watchFull",
|
|
22
|
+
"watch:test": "gulp watchTest"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"js-build-tools": "^2.2.8"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/jheagle/collections.git"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/jheagle/collections/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/jheagle/collections#readme",
|
|
35
|
+
"standard": {
|
|
36
|
+
"env": [
|
|
37
|
+
"jest"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist",
|
|
42
|
+
"browser"
|
|
43
|
+
]
|
|
44
|
+
}
|