@canopycanopycanopy/b-ber-lib 1.2.15 → 2.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/Config.js +1 -1
- package/State.js +5 -0
- package/package.json +9 -8
- package/utils/index.js +10 -1
package/Config.js
CHANGED
package/State.js
CHANGED
|
@@ -56,6 +56,8 @@ var _set = _interopRequireDefault(require("lodash/set"));
|
|
|
56
56
|
|
|
57
57
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
58
58
|
|
|
59
|
+
var _has = _interopRequireDefault(require("lodash/has"));
|
|
60
|
+
|
|
59
61
|
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
60
62
|
|
|
61
63
|
var _remove = _interopRequireDefault(require("lodash/remove"));
|
|
@@ -307,6 +309,9 @@ class State {
|
|
|
307
309
|
(0, _defineProperty2.default)(this, "update", (prop, val) => {
|
|
308
310
|
(0, _set.default)(this, prop, val);
|
|
309
311
|
});
|
|
312
|
+
(0, _defineProperty2.default)(this, "has", prop => {
|
|
313
|
+
return (0, _has.default)(this, prop);
|
|
314
|
+
});
|
|
310
315
|
(0, _defineProperty2.default)(this, "contains", (coll, value) => {
|
|
311
316
|
var _context3;
|
|
312
317
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canopycanopycanopy/b-ber-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,17 +21,18 @@
|
|
|
21
21
|
"@babel/cli": "^7.10.5",
|
|
22
22
|
"@babel/core": "^7.10.5",
|
|
23
23
|
"@babel/preset-env": "^7.10.4",
|
|
24
|
+
"browserslist": "^4.17.4",
|
|
24
25
|
"jest": "^26.6.3",
|
|
25
26
|
"mock-fs": "^4.4.2",
|
|
26
|
-
"rimraf": "^2.
|
|
27
|
+
"rimraf": "^2.7.1"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@babel/runtime-corejs3": "^7.10.5",
|
|
30
|
-
"@canopycanopycanopy/b-ber-logger": "
|
|
31
|
-
"@canopycanopycanopy/b-ber-shapes-dublin-core": "
|
|
32
|
-
"@canopycanopycanopy/b-ber-shapes-sequences": "
|
|
33
|
-
"@canopycanopycanopy/b-ber-theme-sans": "
|
|
34
|
-
"@canopycanopycanopy/b-ber-theme-serif": "
|
|
31
|
+
"@canopycanopycanopy/b-ber-logger": "2.0.0",
|
|
32
|
+
"@canopycanopycanopy/b-ber-shapes-dublin-core": "2.0.0",
|
|
33
|
+
"@canopycanopycanopy/b-ber-shapes-sequences": "2.0.0",
|
|
34
|
+
"@canopycanopycanopy/b-ber-theme-sans": "2.0.0",
|
|
35
|
+
"@canopycanopycanopy/b-ber-theme-serif": "2.0.0",
|
|
35
36
|
"command-exists": "^1.2.2",
|
|
36
37
|
"fs-extra": "^8.1.0",
|
|
37
38
|
"glob": "^7.1.4",
|
|
@@ -76,5 +77,5 @@
|
|
|
76
77
|
"url": "https://maxwellsimmer.com"
|
|
77
78
|
}
|
|
78
79
|
],
|
|
79
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "dbeae192709705f5bc211195ff343cbd999f9caf"
|
|
80
81
|
}
|
package/utils/index.js
CHANGED
|
@@ -174,7 +174,16 @@ const trimLeadingSlash = s => s.replace(/^\//, '');
|
|
|
174
174
|
const resolveIntersectingUrl = (u, p) => {
|
|
175
175
|
var _context7, _context8;
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
let url;
|
|
178
|
+
|
|
179
|
+
try {
|
|
180
|
+
url = new _url.default(u);
|
|
181
|
+
} catch (err) {
|
|
182
|
+
_bBerLogger.default.warn(`${err.message}: "${u}"`);
|
|
183
|
+
|
|
184
|
+
return u;
|
|
185
|
+
}
|
|
186
|
+
|
|
178
187
|
const {
|
|
179
188
|
pathname
|
|
180
189
|
} = url;
|