@vrembem/core
Advanced tools
Comparing version 3.0.11 to 4.0.0-alpha.0
@@ -275,6 +275,6 @@ import focusableSelectors from 'focusable-selectors'; | ||
try { | ||
var _this2 = this; | ||
return Promise.resolve(_this2.deregister(item)).then(function () { | ||
_this2.collection.push(item); | ||
return _this2.collection; | ||
var _this = this; | ||
return Promise.resolve(_this.deregister(item)).then(function () { | ||
_this.collection.push(item); | ||
return _this.collection; | ||
}); | ||
@@ -287,14 +287,14 @@ } catch (e) { | ||
try { | ||
var _this4 = this; | ||
var index = _this4.collection.findIndex(function (entry) { | ||
var _this2 = this; | ||
var index = _this2.collection.findIndex(function (entry) { | ||
return entry === ref; | ||
}); | ||
if (index >= 0) { | ||
var entry = _this4.collection[index]; | ||
var entry = _this2.collection[index]; | ||
Object.getOwnPropertyNames(entry).forEach(function (prop) { | ||
delete entry[prop]; | ||
}); | ||
_this4.collection.splice(index, 1); | ||
_this2.collection.splice(index, 1); | ||
} | ||
return Promise.resolve(_this4.collection); | ||
return Promise.resolve(_this2.collection); | ||
} catch (e) { | ||
@@ -306,7 +306,7 @@ return Promise.reject(e); | ||
try { | ||
var _this6 = this; | ||
var _this3 = this; | ||
return Promise.resolve(Promise.all(Array.from(items, function (item) { | ||
_this6.register(item); | ||
_this3.register(item); | ||
}))).then(function () { | ||
return _this6.collection; | ||
return _this3.collection; | ||
}); | ||
@@ -319,12 +319,12 @@ } catch (e) { | ||
try { | ||
var _temp3 = function _temp3() { | ||
return _this8.collection; | ||
var _temp2 = function _temp2() { | ||
return _this4.collection; | ||
}; | ||
var _this8 = this; | ||
var _temp4 = _for(function () { | ||
return _this8.collection.length > 0; | ||
var _this4 = this; | ||
var _temp = _for(function () { | ||
return _this4.collection.length > 0; | ||
}, void 0, function () { | ||
return Promise.resolve(_this8.deregister(_this8.collection[0])).then(function () {}); | ||
return Promise.resolve(_this4.deregister(_this4.collection[0])).then(function () {}); | ||
}); | ||
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4)); | ||
return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp)); | ||
} catch (e) { | ||
@@ -331,0 +331,0 @@ return Promise.reject(e); |
@@ -279,6 +279,6 @@ var focusableSelectors = require('focusable-selectors'); | ||
try { | ||
var _this2 = this; | ||
return Promise.resolve(_this2.deregister(item)).then(function () { | ||
_this2.collection.push(item); | ||
return _this2.collection; | ||
var _this = this; | ||
return Promise.resolve(_this.deregister(item)).then(function () { | ||
_this.collection.push(item); | ||
return _this.collection; | ||
}); | ||
@@ -291,14 +291,14 @@ } catch (e) { | ||
try { | ||
var _this4 = this; | ||
var index = _this4.collection.findIndex(function (entry) { | ||
var _this2 = this; | ||
var index = _this2.collection.findIndex(function (entry) { | ||
return entry === ref; | ||
}); | ||
if (index >= 0) { | ||
var entry = _this4.collection[index]; | ||
var entry = _this2.collection[index]; | ||
Object.getOwnPropertyNames(entry).forEach(function (prop) { | ||
delete entry[prop]; | ||
}); | ||
_this4.collection.splice(index, 1); | ||
_this2.collection.splice(index, 1); | ||
} | ||
return Promise.resolve(_this4.collection); | ||
return Promise.resolve(_this2.collection); | ||
} catch (e) { | ||
@@ -310,7 +310,7 @@ return Promise.reject(e); | ||
try { | ||
var _this6 = this; | ||
var _this3 = this; | ||
return Promise.resolve(Promise.all(Array.from(items, function (item) { | ||
_this6.register(item); | ||
_this3.register(item); | ||
}))).then(function () { | ||
return _this6.collection; | ||
return _this3.collection; | ||
}); | ||
@@ -323,12 +323,12 @@ } catch (e) { | ||
try { | ||
var _temp3 = function _temp3() { | ||
return _this8.collection; | ||
var _temp2 = function _temp2() { | ||
return _this4.collection; | ||
}; | ||
var _this8 = this; | ||
var _temp4 = _for(function () { | ||
return _this8.collection.length > 0; | ||
var _this4 = this; | ||
var _temp = _for(function () { | ||
return _this4.collection.length > 0; | ||
}, void 0, function () { | ||
return Promise.resolve(_this8.deregister(_this8.collection[0])).then(function () {}); | ||
return Promise.resolve(_this4.deregister(_this4.collection[0])).then(function () {}); | ||
}); | ||
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4)); | ||
return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp)); | ||
} catch (e) { | ||
@@ -335,0 +335,0 @@ return Promise.reject(e); |
@@ -282,6 +282,6 @@ (function (global, factory) { | ||
try { | ||
var _this2 = this; | ||
return Promise.resolve(_this2.deregister(item)).then(function () { | ||
_this2.collection.push(item); | ||
return _this2.collection; | ||
var _this = this; | ||
return Promise.resolve(_this.deregister(item)).then(function () { | ||
_this.collection.push(item); | ||
return _this.collection; | ||
}); | ||
@@ -294,14 +294,14 @@ } catch (e) { | ||
try { | ||
var _this4 = this; | ||
var index = _this4.collection.findIndex(function (entry) { | ||
var _this2 = this; | ||
var index = _this2.collection.findIndex(function (entry) { | ||
return entry === ref; | ||
}); | ||
if (index >= 0) { | ||
var entry = _this4.collection[index]; | ||
var entry = _this2.collection[index]; | ||
Object.getOwnPropertyNames(entry).forEach(function (prop) { | ||
delete entry[prop]; | ||
}); | ||
_this4.collection.splice(index, 1); | ||
_this2.collection.splice(index, 1); | ||
} | ||
return Promise.resolve(_this4.collection); | ||
return Promise.resolve(_this2.collection); | ||
} catch (e) { | ||
@@ -313,7 +313,7 @@ return Promise.reject(e); | ||
try { | ||
var _this6 = this; | ||
var _this3 = this; | ||
return Promise.resolve(Promise.all(Array.from(items, function (item) { | ||
_this6.register(item); | ||
_this3.register(item); | ||
}))).then(function () { | ||
return _this6.collection; | ||
return _this3.collection; | ||
}); | ||
@@ -326,12 +326,12 @@ } catch (e) { | ||
try { | ||
var _temp3 = function _temp3() { | ||
return _this8.collection; | ||
var _temp2 = function _temp2() { | ||
return _this4.collection; | ||
}; | ||
var _this8 = this; | ||
var _temp4 = _for(function () { | ||
return _this8.collection.length > 0; | ||
var _this4 = this; | ||
var _temp = _for(function () { | ||
return _this4.collection.length > 0; | ||
}, void 0, function () { | ||
return Promise.resolve(_this8.deregister(_this8.collection[0])).then(function () {}); | ||
return Promise.resolve(_this4.deregister(_this4.collection[0])).then(function () {}); | ||
}); | ||
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4)); | ||
return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp)); | ||
} catch (e) { | ||
@@ -338,0 +338,0 @@ return Promise.reject(e); |
{ | ||
"name": "@vrembem/core", | ||
"description": "The core variables, functions and mixins for Vrembem components.", | ||
"version": "3.0.11", | ||
"version": "4.0.0-alpha.0", | ||
"license": "MIT", | ||
@@ -24,6 +24,8 @@ "keywords": [ | ||
"index.scss", | ||
"palette.scss", | ||
"theme.scss", | ||
"root.scss" | ||
], | ||
"scripts": { | ||
"build": "npm-run-all clean scripts root", | ||
"build": "npm-run-all clean styles root scripts", | ||
"clean": "del dev && del dist", | ||
@@ -33,7 +35,11 @@ "scripts": "npm-run-all scripts:dev scripts:dist", | ||
"scripts:dist": "microbundle --name=vrembem.core", | ||
"styles": "npm-run-all styles:dev styles:dist", | ||
"styles:dev": "sass root.scss dev/root.css --load-path=node_modules", | ||
"styles:dist": "sass root.scss dist/root.css --load-path=node_modules --style=compressed", | ||
"root": "npm-run-all root:dev root:dist", | ||
"root:dev": "sass src/scss/root:dev --load-path=node_modules", | ||
"root:dist": "sass src/scss/root:dist --load-path=node_modules --style=compressed", | ||
"watch": "concurrently --kill-others 'npm run watch:scripts' 'npm run watch:root'", | ||
"watch": "concurrently --kill-others 'npm run watch:scripts' 'npm run watch:styles' 'npm run watch:root'", | ||
"watch:scripts": "nodemon -e js -x 'npm run scripts' -i dev -i dist", | ||
"watch:styles": "nodemon -e scss -x 'npm run styles'", | ||
"watch:root": "nodemon -e scss -x 'npm run root'" | ||
@@ -50,6 +56,6 @@ }, | ||
}, | ||
"gitHead": "d966f513f86f66dddf93ed60ddefe51124562dc0", | ||
"gitHead": "61727e0657cb8aaf98e8de43cd24b0cdabb2f6d0", | ||
"dependencies": { | ||
"focusable-selectors": "^0.4.0" | ||
"focusable-selectors": "^0.8.0" | ||
} | ||
} |
@@ -8,1 +8,7 @@ # Core | ||
[Documentation](https://vrembem.com/packages/core) | ||
## Installation | ||
```sh | ||
npm install @vrembem/core | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
347076
63
2893
14
3
+ Addedfocusable-selectors@0.8.4(transitive)
- Removedfocusable-selectors@0.4.0(transitive)
Updatedfocusable-selectors@^0.8.0