un-flatten-tree
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
(function (factory) { | ||
(function (dependencies, factory) { | ||
if (typeof module === 'object' && typeof module.exports === 'object') { | ||
@@ -6,5 +6,5 @@ var v = factory(require, exports); if (v !== undefined) module.exports = v; | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["require", "exports"], factory); | ||
define(dependencies, factory); | ||
} | ||
})(function (require, exports) { | ||
})(["require", "exports"], function (require, exports) { | ||
"use strict"; | ||
@@ -11,0 +11,0 @@ var map = Array.prototype.map; |
@@ -1,1 +0,1 @@ | ||
!function(n){if("object"==typeof module&&"object"==typeof module.exports){var t=n(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define(["require","exports"],n)}(function(n,t){"use strict";function e(n,t,e,o){void 0===e&&(e=i),void 0===o&&(o=function(){});for(var r,u=n&&n.length?[{pointer:n,offset:0}]:[],f=[];u.length;)for(r=u.pop();r.offset<r.pointer.length;){var p=r.pointer[r.offset],c=o(p),d=t(p);f.push(e(p,r.node,c,r.nodeId)),r.offset+=1,d&&(u.push(r),r={pointer:d,offset:0,node:p,nodeId:c})}return f}function o(n,t,e,o){if(void 0===o)return u.call(n,function(o,r){var u=f(n,function(n){return t(r,n)});return void 0===u?o.push(r):e(r,u),o},[]);var i=r.call(n,function(n){return{in:n,out:o(n)}});return u.call(i,function(n,o){var r=f(i,function(n){return t(o.in,n.in)});return void 0===r?n.push(o.out):e(o.out,f(i,function(n){return n.in===r.in}).out),n},[])}var r=Array.prototype.map,u=Array.prototype.reduce,f=function(n,t){for(var e=n.length,o=0;o<e;o++)if(t(n[o]))return n[o]},i=function(n){return n};t.flatten=e,t.unflatten=o}); | ||
!function(n,t){if("object"==typeof module&&"object"==typeof module.exports){var e=t(require,exports);void 0!==e&&(module.exports=e)}else"function"==typeof define&&define.amd&&define(n,t)}(["require","exports"],function(n,t){"use strict";function e(n,t,e,o){void 0===e&&(e=i),void 0===o&&(o=function(){});for(var r,u=n&&n.length?[{pointer:n,offset:0}]:[],f=[];u.length;)for(r=u.pop();r.offset<r.pointer.length;){var p=r.pointer[r.offset],c=o(p),d=t(p);f.push(e(p,r.node,c,r.nodeId)),r.offset+=1,d&&(u.push(r),r={pointer:d,offset:0,node:p,nodeId:c})}return f}function o(n,t,e,o){if(void 0===o)return u.call(n,function(o,r){var u=f(n,function(n){return t(r,n)});return void 0===u?o.push(r):e(r,u),o},[]);var i=r.call(n,function(n){return{in:n,out:o(n)}});return u.call(i,function(n,o){var r=f(i,function(n){return t(o.in,n.in)});return void 0===r?n.push(o.out):e(o.out,f(i,function(n){return n.in===r.in}).out),n},[])}var r=Array.prototype.map,u=Array.prototype.reduce,f=function(n,t){for(var e=n.length,o=0;o<e;o++)if(t(n[o]))return n[o]},i=function(n){return n};t.flatten=e,t.unflatten=o}); |
{ | ||
"name": "un-flatten-tree", | ||
"version": "2.0.1", | ||
"version": "2.0.6", | ||
"description": "Functions for converting trees to lists and vice versa.", | ||
@@ -8,5 +8,7 @@ "main": "dist/un-flatten-tree.js", | ||
"scripts": { | ||
"preversion": "npm run build", | ||
"preversion": "npm run build && npm test", | ||
"postversion": "git add -A . && git push && git push --tags", | ||
"build": "tsc && uglifyjs -c -m -o ./dist/un-flatten-tree.min.js ./dist/un-flatten-tree.js", | ||
"test": "npm run lint && tsc -p tests && intern-client config=build/tests/intern", | ||
"test": "npm run lint && npm run test:node", | ||
"test:node": "tsc -p tests && intern-client config=build/tests/intern", | ||
"test:browser": "tsc -p tests && intern-runner config=build/tests/intern-browser", | ||
@@ -16,2 +18,8 @@ "lint": "tslint un-flatten-tree.ts tests/**/*.ts", | ||
}, | ||
"files": [ | ||
"dist/", | ||
"tests/", | ||
"un-flatten-tree.ts", | ||
"tsconfig.json" | ||
], | ||
"repository": { | ||
@@ -18,0 +26,0 @@ "type": "git", |
export * from './intern'; | ||
export const environments = [ | ||
{ | ||
browserName: 'iphone', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'android', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'chrome', | ||
version: ['33', '48'], | ||
platform: ['Linux', 'Windows 10', 'OS X 10.11'], | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'firefox', | ||
version: ['29', '45'], | ||
platform: ['Linux', 'Windows 10', 'OS X 10.11'], | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'MicrosoftEdge', | ||
version: ['13', '14'], | ||
platform: 'Windows 10', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'internet explorer', | ||
version: ['10', '11'], | ||
platform: 'Windows 7', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'safari', | ||
version: ['9', '10'], | ||
platform: 'OS X 10.11', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
} | ||
]; | ||
{ | ||
browserName: 'iphone', | ||
version: ['8.1', '9.2'], | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'android', | ||
version: ['4.4', '5.1'], | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'chrome', | ||
version: ['53', '54'], | ||
platform: ['Windows 10'], | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'firefox', | ||
version: ['49', '50'], | ||
platform: ['Windows 10'], | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'MicrosoftEdge', | ||
version: ['13', '14'], | ||
platform: 'Windows 10', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'internet explorer', | ||
version: ['10', '11'], | ||
platform: 'Windows 7', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
}, | ||
{ | ||
browserName: 'safari', | ||
version: ['9', '10'], | ||
platform: 'OS X 10.11', | ||
recordVideo: false, | ||
recordScreenshots: false | ||
} | ||
]; | ||
@@ -51,0 +53,0 @@ export const tunnel = 'SauceLabsTunnel'; |
Sorry, the diff of this file is not supported yet
32378
-3.67%16
-23.81%705
-1.26%