@artinstack/migrator 0.1.0 → 0.1.2
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/README.md +66 -9
- package/dist/{bundle-BfZqiKV_.d.ts → bundle-DfM_jKbq.d.ts} +2 -2
- package/dist/chunk-2PNSVE5Y.js +67 -0
- package/dist/chunk-2PNSVE5Y.js.map +1 -0
- package/dist/chunk-3YJFSTYR.js +147 -0
- package/dist/chunk-3YJFSTYR.js.map +1 -0
- package/dist/{chunk-LKNIQQJO.js → chunk-HH7666MQ.js} +13 -65
- package/dist/chunk-HH7666MQ.js.map +1 -0
- package/dist/{chunk-JKDRTL24.js → chunk-HI7JHWZU.js} +1 -1
- package/dist/chunk-HI7JHWZU.js.map +1 -0
- package/dist/chunk-VXEHAQKK.js +2290 -0
- package/dist/chunk-VXEHAQKK.js.map +1 -0
- package/dist/cli/index.js +23 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/{index-DQNzrygx.d.ts → index-D88mjcF5.d.ts} +1 -1
- package/dist/index.d.ts +259 -5
- package/dist/index.js +127 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +15 -0
- package/dist/normalizer/index.d.ts +837 -3
- package/dist/normalizer/index.js +36 -3
- package/dist/sinks/index.d.ts +2 -2
- package/dist/sinks/index.js +3 -2
- package/package.json +5 -1
- package/dist/chunk-2RWAXT6O.js +0 -1
- package/dist/chunk-FXXKLYO5.js +0 -1076
- package/dist/chunk-FXXKLYO5.js.map +0 -1
- package/dist/chunk-JKDRTL24.js.map +0 -1
- package/dist/chunk-LKNIQQJO.js.map +0 -1
- /package/dist/{chunk-2RWAXT6O.js.map → lib/index.js.map} +0 -0
package/dist/normalizer/index.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
normalizedAssetExifSchema,
|
|
3
|
+
normalizedAssetSchema,
|
|
4
|
+
normalizedCategorySchema,
|
|
5
|
+
normalizedEntitySchema,
|
|
6
|
+
normalizedPageSchema,
|
|
7
|
+
normalizedPortfolioSchema,
|
|
8
|
+
normalizedPostSchema,
|
|
9
|
+
normalizedTagSchema,
|
|
10
|
+
sourceMetadataSchema,
|
|
11
|
+
validateNormalizedAsset,
|
|
12
|
+
validateNormalizedCategory,
|
|
13
|
+
validateNormalizedEntity,
|
|
14
|
+
validateNormalizedPage,
|
|
15
|
+
validateNormalizedPortfolio,
|
|
16
|
+
validateNormalizedPost,
|
|
17
|
+
validateNormalizedTag
|
|
18
|
+
} from "../chunk-3YJFSTYR.js";
|
|
2
19
|
import {
|
|
3
20
|
buildPortfolioMediaLinks,
|
|
4
21
|
bundleCounts,
|
|
@@ -7,7 +24,7 @@ import {
|
|
|
7
24
|
entityKey,
|
|
8
25
|
isTerminalState,
|
|
9
26
|
shouldProcessEntity
|
|
10
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-HI7JHWZU.js";
|
|
11
28
|
export {
|
|
12
29
|
buildPortfolioMediaLinks,
|
|
13
30
|
bundleCounts,
|
|
@@ -15,6 +32,22 @@ export {
|
|
|
15
32
|
emptyBundle,
|
|
16
33
|
entityKey,
|
|
17
34
|
isTerminalState,
|
|
18
|
-
|
|
35
|
+
normalizedAssetExifSchema,
|
|
36
|
+
normalizedAssetSchema,
|
|
37
|
+
normalizedCategorySchema,
|
|
38
|
+
normalizedEntitySchema,
|
|
39
|
+
normalizedPageSchema,
|
|
40
|
+
normalizedPortfolioSchema,
|
|
41
|
+
normalizedPostSchema,
|
|
42
|
+
normalizedTagSchema,
|
|
43
|
+
shouldProcessEntity,
|
|
44
|
+
sourceMetadataSchema,
|
|
45
|
+
validateNormalizedAsset,
|
|
46
|
+
validateNormalizedCategory,
|
|
47
|
+
validateNormalizedEntity,
|
|
48
|
+
validateNormalizedPage,
|
|
49
|
+
validateNormalizedPortfolio,
|
|
50
|
+
validateNormalizedPost,
|
|
51
|
+
validateNormalizedTag
|
|
19
52
|
};
|
|
20
53
|
//# sourceMappingURL=index.js.map
|
package/dist/sinks/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as ConflictReport, D as DryRunOptions, a as DryRunResult, F as FALLBACK_ASSET_BYTES, b as FilesystemMigrationSink, M as MIGRATION_WRITE_STAGES, c as MigrationRedirect, d as MigrationReport, e as MigrationRunMode, f as MigrationRunOptions, g as MigrationRunResult, h as MigrationSink, i as MigrationWriteStage, j as RewriteInlineImagesOptions, k as RewriteInlineImagesResult, S as StorageEstimate, U as UploadAssetInput, l as UploadAssetResult, W as WriteFilesystemOptions, n as analyzeConflicts, o as buildMigrationReport, p as buildRedirectMap, q as bundleToCombinedJson, r as createFilesystemMigrationSink, s as detectRedirectLoops, t as emptyConflictReport, u as estimateStorage, v as hasBlockingConflicts, w as hasWarnings, x as portfolioMediaMatchesBundle, y as rewriteInlineImages, z as runDryRun, A as runMigration, B as runMigrationFromBundle, E as staleUrlsFromEstimate, G as writeFilesystemExport } from '../index-
|
|
2
|
-
import '../bundle-
|
|
1
|
+
export { C as ConflictReport, D as DryRunOptions, a as DryRunResult, F as FALLBACK_ASSET_BYTES, b as FilesystemMigrationSink, M as MIGRATION_WRITE_STAGES, c as MigrationRedirect, d as MigrationReport, e as MigrationRunMode, f as MigrationRunOptions, g as MigrationRunResult, h as MigrationSink, i as MigrationWriteStage, j as RewriteInlineImagesOptions, k as RewriteInlineImagesResult, S as StorageEstimate, U as UploadAssetInput, l as UploadAssetResult, W as WriteFilesystemOptions, n as analyzeConflicts, o as buildMigrationReport, p as buildRedirectMap, q as bundleToCombinedJson, r as createFilesystemMigrationSink, s as detectRedirectLoops, t as emptyConflictReport, u as estimateStorage, v as hasBlockingConflicts, w as hasWarnings, x as portfolioMediaMatchesBundle, y as rewriteInlineImages, z as runDryRun, A as runMigration, B as runMigrationFromBundle, E as staleUrlsFromEstimate, G as writeFilesystemExport } from '../index-D88mjcF5.js';
|
|
2
|
+
import '../bundle-DfM_jKbq.js';
|
|
3
3
|
import 'node:stream';
|
package/dist/sinks/index.js
CHANGED
|
@@ -19,8 +19,9 @@ import {
|
|
|
19
19
|
runMigrationFromBundle,
|
|
20
20
|
staleUrlsFromEstimate,
|
|
21
21
|
writeFilesystemExport
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-HH7666MQ.js";
|
|
23
|
+
import "../chunk-HI7JHWZU.js";
|
|
24
|
+
import "../chunk-2PNSVE5Y.js";
|
|
24
25
|
export {
|
|
25
26
|
FALLBACK_ASSET_BYTES,
|
|
26
27
|
FilesystemMigrationSink,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artinstack/migrator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Stateless content normalizer and migration framework — WordPress, SmugMug, Squarespace → platform-agnostic schema",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ArtInStack",
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
"./sinks": {
|
|
43
43
|
"types": "./dist/sinks/index.d.ts",
|
|
44
44
|
"import": "./dist/sinks/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./lib": {
|
|
47
|
+
"types": "./dist/lib/index.d.ts",
|
|
48
|
+
"import": "./dist/lib/index.js"
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
"bin": {
|
package/dist/chunk-2RWAXT6O.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-2RWAXT6O.js.map
|