@oliasoft-open-source/node-json-migrator 5.0.0-beta-1 → 5.0.1-beta-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/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -813,7 +813,7 @@ const capitalize = (word) => {
|
|
|
813
813
|
//#region src/plan/loader-module.ts
|
|
814
814
|
const lazyImportMigration = (script) => {
|
|
815
815
|
if (!script) return noop;
|
|
816
|
-
const patchedScript = script.replace(/import\s+\{?\s*produce\s*}?\s+from\s+['"]immer['"];?/, "").replace(/export\s+default\s+/, "const migration = ");
|
|
816
|
+
const patchedScript = script.replace(/import\s+\{?\s*produce\s*}?\s+from\s+['"]immer['"];?/, "").replace(/export\s+default\s+/, "const migration = ").replace(/export\s+(const|function|async function)\s+/g, "$1 ");
|
|
817
817
|
return (payload, metaData) => {
|
|
818
818
|
const context = {
|
|
819
819
|
payload,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/node-json-migrator",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1-beta-1",
|
|
4
4
|
"description": "A library for JSON migrations",
|
|
5
5
|
"homepage": "https://oliasoft-open-source.gitlab.io/node-json-migrator",
|
|
6
6
|
"bugs": {
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"author": "Oliasoft AS and contributors",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
|
-
"
|
|
17
|
+
".": {
|
|
18
18
|
"types": "./dist/index.d.mts",
|
|
19
|
-
"
|
|
19
|
+
"import": "./dist/index.mjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
"main": "./dist/index.
|
|
22
|
+
"main": "./dist/index.mjs",
|
|
23
23
|
"module": "./dist/index.mjs",
|
|
24
|
-
"types": "./dist/index.d.
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|
|
27
27
|
],
|