@adobe/helix-shared-config 10.0.3 → 10.1.1
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/CHANGELOG.md +14 -0
- package/package.json +5 -5
- package/src/IndexConfig.js +16 -0
- package/src/MountConfig.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/helix-shared-config-v10.1.1](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.1.0...@adobe/helix-shared-config-v10.1.1) (2023-05-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** remove yaml@2.1.1 by updating helix-shared-git dependency ([#800](https://github.com/adobe/helix-shared/issues/800)) ([73f24d2](https://github.com/adobe/helix-shared/commit/73f24d293f3fa6edf644d106590ddd1f55001348))
|
|
7
|
+
|
|
8
|
+
# [@adobe/helix-shared-config-v10.1.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.0.3...@adobe/helix-shared-config-v10.1.0) (2023-04-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* delete generated index configuration ([#792](https://github.com/adobe/helix-shared/issues/792)) ([f08aac7](https://github.com/adobe/helix-shared/commit/f08aac7098f7badbc4a1560a87730f4ef1715450))
|
|
14
|
+
|
|
1
15
|
# [@adobe/helix-shared-config-v10.0.3](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.0.2...@adobe/helix-shared-config-v10.0.3) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-shared-config",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"description": "Shared modules of the Helix Project - config",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@adobe/fetch": "^4.0.1",
|
|
33
|
-
"@adobe/helix-shared-git": "^
|
|
33
|
+
"@adobe/helix-shared-git": "^3.0.0",
|
|
34
34
|
"@adobe/helix-shared-prune": "^1.0.5",
|
|
35
35
|
"@adobe/helix-shared-utils": "^2.1.0",
|
|
36
36
|
"ajv": "8.12.0",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"cookie": "0.5.0",
|
|
39
39
|
"fs-extra": "11.1.1",
|
|
40
40
|
"ignore": "5.2.4",
|
|
41
|
-
"lru-cache": "9.
|
|
41
|
+
"lru-cache": "9.1.1",
|
|
42
42
|
"object-hash": "3.0.0",
|
|
43
43
|
"uri-js": "4.4.1",
|
|
44
|
-
"yaml": "2.2.
|
|
44
|
+
"yaml": "2.2.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@adobe/helix-shared-wrap": "^1.0.5",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"@pollyjs/adapter-node-http": "6.0.5",
|
|
50
50
|
"@pollyjs/core": "6.0.5",
|
|
51
51
|
"@pollyjs/persister-fs": "6.0.5",
|
|
52
|
-
"nock": "13.3.
|
|
52
|
+
"nock": "13.3.1"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/IndexConfig.js
CHANGED
|
@@ -88,6 +88,22 @@ export class IndexConfig extends SchemaDerivedConfig {
|
|
|
88
88
|
this._document = null;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Removes an index definition.
|
|
93
|
+
*
|
|
94
|
+
* @param {Object} index index configuration
|
|
95
|
+
* @param {string} index.name index name
|
|
96
|
+
*/
|
|
97
|
+
removeIndex({
|
|
98
|
+
name,
|
|
99
|
+
}) {
|
|
100
|
+
const { indices } = this._cfg;
|
|
101
|
+
delete indices[name];
|
|
102
|
+
|
|
103
|
+
// let BaseConfig.toYAML() use the JSON output
|
|
104
|
+
this._document = null;
|
|
105
|
+
}
|
|
106
|
+
|
|
91
107
|
/**
|
|
92
108
|
* Evaluates a variable expression
|
|
93
109
|
* @param {string} expression the expression to encode
|
package/src/MountConfig.js
CHANGED
|
@@ -44,7 +44,7 @@ function stripQuery(m, ...specialparams) {
|
|
|
44
44
|
|
|
45
45
|
const onedriveDecorator = {
|
|
46
46
|
test(m) {
|
|
47
|
-
return /^https:\/\/[
|
|
47
|
+
return /^https:\/\/[a-z0-9-]+\.sharepoint\.com\//.test(m.url) || m.url.startsWith('https://1drv.ms/') || m.url.startsWith('onedrive:');
|
|
48
48
|
},
|
|
49
49
|
decorate(m) {
|
|
50
50
|
return {
|