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

order-map

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

order-map - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

dist/order-map.cjs.js

@@ -7,3 +7,3 @@ /*

repository: git+https://github.com/daybrush/order-map.git
version: 0.1.0
version: 0.1.1
*/

@@ -10,0 +10,0 @@ 'use strict';

@@ -7,3 +7,3 @@ /*

repository: git+https://github.com/daybrush/order-map.git
version: 0.1.0
version: 0.1.1
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /*

repository: git+https://github.com/daybrush/order-map.git
version: 0.1.0
version: 0.1.1
*/

@@ -10,0 +10,0 @@ (function (global, factory) {

@@ -7,5 +7,5 @@ /*

repository: git+https://github.com/daybrush/order-map.git
version: 0.1.0
version: 0.1.1
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).OrderMap=e()}(this,function(){"use strict";return function(){function a(t){this.separator=t,this.orderMap={}}var t=a.prototype;return t.getFullName=function(t){return t.join(this.separator)},t.get=function(t){return this.orderMap[this.getFullName(t)]},t.gets=function(t,e){void 0===e&&(e=!0);var a=[],r=this;return function n(i,o){var t=r.get(i);if(t)return t.forEach(function(t){var e=o.concat([t]),r=n(i.concat([t]),e);r&&r.length||a.push(o.concat([t]))}),t}(t,e?t:[]),a},t.set=function(r,t){var n=this;return r.forEach(function(t,e){n.addName(r.slice(0,e),t)}),this.orderMap[this.getFullName(r)]=t},t.add=function(t){var e=t.length;return e?this.addName(t.slice(0,-1),t[e-1]):[]},t.addName=function(t,e){var r=this.get(t)||this.set(t,[]);return-1===r.indexOf(e)&&r.push(e),r},t.findIndex=function(t,e){var r=this.orderMap[this.getFullName(t)];return r?r.indexOf(e):-1},t.remove=function(t){var e=this.getFullName(t),r=this.orderMap;for(var n in r)0===n.indexOf(e)&&delete r[n];var i=t.length;if(i){var o=t.slice(0,-1),a=t[i-1];this.splice(o,this.findIndex(o,a),1)}return this},t.filter=function(t,e,r){void 0===r&&(r=!0);var n=this.gets(t,r).filter(e),i=new a(this.separator),o=r?[]:t;return n.forEach(function(t){i.add(o.concat(t))}),i},t.splice=function(t,e,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];var o=this.get(t)||this.set(t,[]);return o.splice.apply(o,[e,r].concat(n)),this},t.clear=function(){this.orderMap={}},t.setObject=function(t){this.orderMap={};var e=this.orderMap;for(var r in t)e[r]=t[r].slice()},t.clone=function(){var t=new a(this.separator);return t.setObject(t.orderMap),t},a}()});
//# sourceMappingURL=order-map.min.js.map
{
"name": "order-map",
"version": "0.1.0",
"description": "A order-map collection in the form of key, value, that ensures the index.",
"main": "./dist/order-map.cjs.js",
"module": "./dist/order-map.esm.js",
"sideEffects": false,
"types": "declaration/OrderMap.d.ts",
"scripts": {
"start": "rollup -c -w",
"build": "rollup -c && npm run declaration && print-sizes ./dist",
"declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json",
"doc": "rm -rf ./doc && jsdoc -c jsdoc.json",
"prerelease": "npm run build && prerelease --dirs=dist,doc",
"release": "npm run build && npm run doc && release --dirs=dist,doc",
"release:init": "npm run build && npm run doc && release -i --dirs=dist,doc",
"test": "jest --watchAll",
"coverage": "jest --coverage && print-coveralls --sort=desc",
"coveralls": "cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
"url": "git+https://github.com/daybrush/order-map.git"
},
"author": "Daybrush",
"license": "MIT",
"bugs": {
"url": "https://github.com/daybrush/order-map/issues"
},
"homepage": "https://github.com/daybrush/order-map#readme",
"dependencies": {
"@daybrush/utils": "^0.13.0"
},
"keywords": [
"order",
"list",
"map",
"order-map",
"collection",
"key",
"value",
"array"
],
"devDependencies": {
"@daybrush/builder": "^0.1.0",
"@daybrush/jsdoc": "^0.3.7",
"@daybrush/release": "^0.2.4",
"@types/jest": "^24.0.13",
"coveralls": "^3.0.3",
"daybrush-jsdoc-template": "^1.6.0",
"jest": "^24.8.0",
"print-coveralls": "^1.2.2",
"print-sizes": "0.0.4",
"ts-jest": "^24.0.2",
"tslint": "^5.16.0",
"typescript": "^3.4.5"
}
"name": "order-map",
"version": "0.1.1",
"description": "A order-map collection in the form of key, value, that ensures the index.",
"main": "./dist/order-map.cjs.js",
"module": "./dist/order-map.esm.js",
"sideEffects": false,
"types": "declaration/OrderMap.d.ts",
"scripts": {
"start": "rollup -c -w",
"build": "rollup -c && npm run declaration && print-sizes ./dist",
"declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json",
"doc": "rm -rf ./doc && jsdoc -c jsdoc.json",
"prerelease": "npm run build && prerelease --dirs=dist,doc",
"release": "npm run build && npm run doc && release --dirs=dist,doc",
"release:init": "npm run build && npm run doc && release -i --dirs=dist,doc",
"test": "jest --watchAll",
"coverage": "jest --coverage && print-coveralls --sort=desc",
"coveralls": "cat ./coverage/lcov.info | coveralls"
},
"repository": {
"type": "git",
"url": "git+https://github.com/daybrush/order-map.git"
},
"author": "Daybrush",
"license": "MIT",
"bugs": {
"url": "https://github.com/daybrush/order-map/issues"
},
"homepage": "https://github.com/daybrush/order-map#readme",
"dependencies": {
"@daybrush/utils": "^0.13.0"
},
"peerDependencies": {
"@daybrush/utils": ">=0.13.0"
},
"keywords": [
"order",
"list",
"map",
"order-map",
"collection",
"key",
"value",
"array"
],
"devDependencies": {
"@daybrush/builder": "^0.1.0",
"@daybrush/jsdoc": "^0.3.7",
"@daybrush/release": "^0.2.4",
"@types/jest": "^24.0.13",
"coveralls": "^3.0.3",
"daybrush-jsdoc-template": "^1.6.0",
"jest": "^24.8.0",
"print-coveralls": "^1.2.2",
"print-sizes": "0.0.4",
"ts-jest": "^24.0.2",
"tslint": "^5.16.0",
"typescript": "^3.4.5"
}
}
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