@storyous/mongodb 1.10.4 → 1.10.5
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/lib/migrations/templateJSCompatible.d.ts +1 -0
- package/lib/migrations/templateJSCompatible.js +8 -0
- package/lib/migrations/templateJSCompatible.ts +9 -0
- package/lib/migrations/templateJs.js +9 -0
- package/package.json +2 -2
- package/lib/migrations/templateJsCompatible.d.ts +0 -4
- package/lib/migrations/templateJsCompatible.js +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare const Migration: any, getCollection: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// eslint-disable-next-line strict
|
|
2
|
+
'use strict';
|
|
3
|
+
const { Migration, getCollection } = require('@storyous/mongodb');
|
|
4
|
+
module.exports = new Migration('[ADD DESCRIPTION HERE]', async () => {
|
|
5
|
+
// add logic here
|
|
6
|
+
await getCollection('exampleCollection');
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVKU0NvbXBhdGlibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZW1wbGF0ZUpTQ29tcGF0aWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxrQ0FBa0M7QUFDbEMsWUFBWSxDQUFDO0FBRWIsTUFBTSxFQUFFLFNBQVMsRUFBRSxhQUFhLEVBQUUsR0FBRyxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQztBQUVsRSxNQUFNLENBQUMsT0FBTyxHQUFHLElBQUksU0FBUyxDQUFDLHdCQUF3QixFQUFFLEtBQUssSUFBSSxFQUFFO0lBQ2hFLGlCQUFpQjtJQUNqQixNQUFNLGFBQWEsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO0FBQzdDLENBQUMsQ0FBQyxDQUFDIn0=
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// eslint-disable-next-line strict
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { Migration, getCollection } = require('@storyous/mongodb');
|
|
5
|
+
|
|
6
|
+
module.exports = new Migration('[ADD DESCRIPTION HERE]', async () => {
|
|
7
|
+
// add logic here
|
|
8
|
+
await getCollection('exampleCollection');
|
|
9
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// eslint-disable-next-line strict
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { Migration, getCollection } = require('@storyous/mongodb');
|
|
5
|
+
|
|
6
|
+
module.exports = new Migration('[ADD DESCRIPTION HERE]', async () => {
|
|
7
|
+
// add logic here
|
|
8
|
+
await getCollection('exampleCollection');
|
|
9
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyous/mongodb",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/Storyous/mono-utils#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"mongodb": "^6.8.0 || ^7.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "f0efe45d38d8433d0ccc8e428fc2b2cea2ec6eb6"
|
|
49
49
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** template for older systems like IS runs on js modules.
|
|
3
|
-
* Transpiled file is compatible and can be used in migrate:create script */
|
|
4
|
-
const getCollection = require('../getCollection');
|
|
5
|
-
const Migration = require('./Migration');
|
|
6
|
-
module.exports = new Migration('[ADD DESCRIPTION HERE]', async () => {
|
|
7
|
-
// add logic here
|
|
8
|
-
await getCollection('exampleCollection');
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVKc0NvbXBhdGlibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZW1wbGF0ZUpzQ29tcGF0aWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7NEVBQzRFO0FBQzVFLE1BQU0sYUFBYSxHQUFHLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBQ2xELE1BQU0sU0FBUyxHQUFHLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQztBQUV6QyxNQUFNLENBQUMsT0FBTyxHQUFHLElBQUksU0FBUyxDQUFDLHdCQUF3QixFQUFFLEtBQUssSUFBSSxFQUFFO0lBQ2hFLGlCQUFpQjtJQUNqQixNQUFNLGFBQWEsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO0FBQzdDLENBQUMsQ0FBQyxDQUFDIn0=
|