@aeriajs/cli 0.0.288 → 0.0.290
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/dist/migrate.js +2 -2
- package/package.json +6 -6
package/dist/migrate.js
CHANGED
|
@@ -107,9 +107,9 @@ export const migrate = async () => {
|
|
|
107
107
|
const collIndexes = await model.indexes();
|
|
108
108
|
const indexes = Array.from(indexesSet);
|
|
109
109
|
const textIndex = collIndexes.find((index) => 'textIndexVersion' in index);
|
|
110
|
-
const invalidated = textIndex && !indexes.every((key) => Object.keys(textIndex.weights).includes(key));
|
|
110
|
+
const invalidated = textIndex && !indexes.every((key) => textIndex.weights && Object.keys(textIndex.weights).includes(key));
|
|
111
111
|
if (!textIndex || invalidated) {
|
|
112
|
-
if (textIndex) {
|
|
112
|
+
if (textIndex?.name) {
|
|
113
113
|
await model.dropIndex(textIndex.name);
|
|
114
114
|
}
|
|
115
115
|
await model.createIndex(Object.fromEntries(indexes.map((index) => [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.290",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@aeriajs/types": "link:../types"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@aeriajs/builtins": "^0.0.
|
|
43
|
-
"@aeriajs/common": "^0.0.
|
|
44
|
-
"@aeriajs/compiler": "^0.0.
|
|
45
|
-
"@aeriajs/core": "^0.0.
|
|
46
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
42
|
+
"@aeriajs/builtins": "^0.0.303",
|
|
43
|
+
"@aeriajs/common": "^0.0.173",
|
|
44
|
+
"@aeriajs/compiler": "^0.0.87",
|
|
45
|
+
"@aeriajs/core": "^0.0.303",
|
|
46
|
+
"@aeriajs/entrypoint": "^0.0.181",
|
|
47
47
|
"@aeriajs/types": "^0.0.144"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|