@haibun/domain-storage 4.0.0-alpha.2 → 4.0.0-alpha.3
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/build/AStorage.d.ts +22 -19
- package/build/AStorage.d.ts.map +1 -1
- package/build/AStorage.js +30 -37
- package/build/AStorage.js.map +1 -1
- package/build/domain-storage.d.ts +7 -7
- package/build/domain-storage.d.ts.map +1 -1
- package/build/domain-storage.js +9 -9
- package/build/media-types.d.ts +1 -1
- package/build/media-types.d.ts.map +1 -1
- package/build/media-types.js +36 -36
- package/build/media-types.js.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/build/AStorage.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { TStepArgs } from "@haibun/core/schema/protocol.js";
|
|
3
|
+
import { IFile, TLocationOptions } from "./domain-storage.js";
|
|
4
|
+
import { TMediaType } from "./media-types.js";
|
|
4
5
|
import { AStepper } from "@haibun/core/lib/astepper.js";
|
|
5
|
-
import { TAnyFixme } from
|
|
6
|
-
import { TFeatureStep } from '@haibun/core/lib/defs.js';
|
|
6
|
+
import { TAnyFixme } from "@haibun/core/lib/fixme.js";
|
|
7
7
|
/**
|
|
8
8
|
* Result from saveArtifact with paths for different consumption contexts.
|
|
9
9
|
*/
|
|
@@ -33,7 +33,7 @@ export declare abstract class AStorage extends AStepper {
|
|
|
33
33
|
* Overload this where slash directory conventions aren't used.
|
|
34
34
|
*/
|
|
35
35
|
fromLocation(mediaType: TMediaType, ...where: string[]): string;
|
|
36
|
-
locator: (options: import("@haibun/core/lib/
|
|
36
|
+
locator: (options: import("@haibun/core/build/lib/execution.js").TBaseOptions, tag: import("@haibun/core/build/lib/ttag.js").TTag, ...where: (string | undefined)[]) => string;
|
|
37
37
|
getCaptureLocation(loc: TLocationOptions, app?: string): Promise<string>;
|
|
38
38
|
/**
|
|
39
39
|
* Get base artifact path (capture/DEST/key) without seq/featn.
|
|
@@ -54,51 +54,54 @@ export declare abstract class AStorage extends AStepper {
|
|
|
54
54
|
steps: {
|
|
55
55
|
createSizedFile: {
|
|
56
56
|
gwta: string;
|
|
57
|
-
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
57
|
+
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
58
58
|
};
|
|
59
59
|
createFile: {
|
|
60
60
|
gwta: string;
|
|
61
|
-
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
61
|
+
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
62
62
|
};
|
|
63
63
|
createDirectory: {
|
|
64
64
|
gwta: string;
|
|
65
|
-
action: ({ where }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
65
|
+
action: ({ where }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
66
66
|
};
|
|
67
67
|
filesCount: {
|
|
68
68
|
gwta: string;
|
|
69
|
-
action: ({ where, count }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
69
|
+
action: ({ where, count }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
70
70
|
};
|
|
71
71
|
testIs: {
|
|
72
72
|
gwta: string;
|
|
73
|
-
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
73
|
+
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
74
74
|
};
|
|
75
75
|
testContains: {
|
|
76
76
|
gwta: string;
|
|
77
|
-
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
77
|
+
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
78
78
|
};
|
|
79
79
|
testNotContains: {
|
|
80
80
|
gwta: string;
|
|
81
|
-
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
81
|
+
action: ({ where, what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
82
82
|
};
|
|
83
83
|
listFiles: {
|
|
84
84
|
gwta: string;
|
|
85
|
-
action: ({ where }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
85
|
+
action: ({ where }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
86
86
|
};
|
|
87
87
|
fileExists: {
|
|
88
88
|
gwta: string;
|
|
89
|
-
action: ({ what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
89
|
+
action: ({ what }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
90
90
|
};
|
|
91
91
|
isTheSame: {
|
|
92
92
|
gwta: string;
|
|
93
|
-
action: ({ what, where }: TStepArgs) => import("@haibun/core/schema/protocol.js").
|
|
93
|
+
action: ({ what, where }: TStepArgs) => import("@haibun/core/schema/protocol.js").TActionResult;
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
readFile: {
|
|
96
96
|
gwta: string;
|
|
97
|
-
|
|
97
|
+
outputSchema: z.ZodObject<{
|
|
98
|
+
contents: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
action: ({ where }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
98
101
|
};
|
|
99
102
|
fileIsRecent: {
|
|
100
103
|
gwta: string;
|
|
101
|
-
action: ({ where, minutes }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").
|
|
104
|
+
action: ({ where, minutes }: TStepArgs) => Promise<import("@haibun/core/schema/protocol.js").TActionResult>;
|
|
102
105
|
};
|
|
103
106
|
};
|
|
104
107
|
}
|
package/build/AStorage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AStorage.d.ts","sourceRoot":"","sources":["../src/AStorage.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"AStorage.d.ts","sourceRoot":"","sources":["../src/AStorage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAM,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAe,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAgB,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,0FAA0F;IAC1F,mBAAmB,EAAE,MAAM,CAAC;IAC5B,wFAAwF;IACxF,gBAAgB,EAAE,MAAM,CAAC;CACzB;AAED,8BAAsB,QAAS,SAAQ,QAAQ;IAC9C,WAAW,SAA0D;IAErE,IAAI,YAAwB;IAC5B,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS;IAC3D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAC/B,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IACnD,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,GAAG,IAAI;IAE/E,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAA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es } from
|
|
6
|
-
import { AStepper, StepperKinds
|
|
7
|
-
import { actionNotOK } from
|
|
1
|
+
import { resolve, relative } from "path";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { OK } from "@haibun/core/schema/protocol.js";
|
|
4
|
+
import { captureLocator } from "@haibun/core/lib/capture-locator.js";
|
|
5
|
+
import { EMediaTypes } from "./media-types.js";
|
|
6
|
+
import { AStepper, StepperKinds } from "@haibun/core/lib/astepper.js";
|
|
7
|
+
import { actionNotOK, actionOKWithProducts } from "@haibun/core/lib/util/index.js";
|
|
8
8
|
export class AStorage extends AStepper {
|
|
9
|
-
description =
|
|
9
|
+
description = "Create files, directories, and manage test artifacts";
|
|
10
10
|
kind = StepperKinds.STORAGE;
|
|
11
11
|
async readdirStat(dir) {
|
|
12
12
|
const files = await this.readdir(dir);
|
|
@@ -18,7 +18,7 @@ export class AStorage extends AStepper {
|
|
|
18
18
|
return mapped;
|
|
19
19
|
}
|
|
20
20
|
async writeFile(file, contents, mediaType) {
|
|
21
|
-
if (typeof contents ===
|
|
21
|
+
if (typeof contents === "string") {
|
|
22
22
|
await this.writeFileBuffer(file, Buffer.from(contents), mediaType);
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
@@ -30,7 +30,7 @@ export class AStorage extends AStepper {
|
|
|
30
30
|
* Overload this where slash directory conventions aren't used.
|
|
31
31
|
*/
|
|
32
32
|
fromLocation(mediaType, ...where) {
|
|
33
|
-
return where.map((w) => w.replace(/\/$/,
|
|
33
|
+
return where.map((w) => w.replace(/\/$/, "")).join("/");
|
|
34
34
|
}
|
|
35
35
|
locator = captureLocator;
|
|
36
36
|
// biome-ignore lint/suspicious/useAwait: may be async in some implementations
|
|
@@ -45,7 +45,7 @@ export class AStorage extends AStepper {
|
|
|
45
45
|
*/
|
|
46
46
|
getArtifactBasePath() {
|
|
47
47
|
const { tag, options } = this.world;
|
|
48
|
-
return `./capture/${options.DEST ||
|
|
48
|
+
return `./capture/${options.DEST || "default"}/${tag.key}`;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Save an artifact and return paths for different consumption contexts.
|
|
@@ -67,7 +67,7 @@ export class AStorage extends AStepper {
|
|
|
67
67
|
const baseRelativePath = relative(resolve(basePath), absolutePath);
|
|
68
68
|
return { absolutePath, featureRelativePath, baseRelativePath };
|
|
69
69
|
}
|
|
70
|
-
async ensureCaptureLocation(loc, app, fn =
|
|
70
|
+
async ensureCaptureLocation(loc, app, fn = "") {
|
|
71
71
|
const dir = await this.getCaptureLocation(loc, app);
|
|
72
72
|
await this.ensureDirExists(dir);
|
|
73
73
|
return fn ? `${dir}/${fn}` : dir;
|
|
@@ -116,21 +116,23 @@ export class AStorage extends AStepper {
|
|
|
116
116
|
testIs: {
|
|
117
117
|
gwta: `text at {where} is {what}`,
|
|
118
118
|
action: async ({ where, what }) => {
|
|
119
|
-
const text = await this.readFile(String(where),
|
|
119
|
+
const text = await this.readFile(String(where), "utf-8");
|
|
120
120
|
return text === String(what) ? OK : actionNotOK(`text at ${where} is not ${what}; it's ${text}`);
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
testContains: {
|
|
124
124
|
gwta: `text at {where} contains {what}`,
|
|
125
125
|
action: async ({ where, what }) => {
|
|
126
|
-
const text = await this.readFile(String(where),
|
|
127
|
-
return text.toString().indexOf(String(what)) > -1
|
|
126
|
+
const text = await this.readFile(String(where), "utf-8");
|
|
127
|
+
return text.toString().indexOf(String(what)) > -1
|
|
128
|
+
? OK
|
|
129
|
+
: actionNotOK(`text at ${where} does not contain ${what}; it's ${text}`);
|
|
128
130
|
},
|
|
129
131
|
},
|
|
130
132
|
testNotContains: {
|
|
131
133
|
gwta: `text at {where} does not contain {what}`,
|
|
132
134
|
action: async ({ where, what }) => {
|
|
133
|
-
const text = await this.readFile(String(where),
|
|
135
|
+
const text = await this.readFile(String(where), "utf-8");
|
|
134
136
|
return text.toString().indexOf(String(what)) === -1 ? OK : actionNotOK(`text at ${where} contains ${what}`);
|
|
135
137
|
},
|
|
136
138
|
},
|
|
@@ -138,7 +140,7 @@ export class AStorage extends AStepper {
|
|
|
138
140
|
gwta: `list files from {where}`,
|
|
139
141
|
action: async ({ where }) => {
|
|
140
142
|
const files = await this.readdir(String(where));
|
|
141
|
-
this.getWorld().eventLogger.info(`files from ${where}: ${files.join(
|
|
143
|
+
this.getWorld().eventLogger.info(`files from ${where}: ${files.join(", ")}`);
|
|
142
144
|
return OK;
|
|
143
145
|
},
|
|
144
146
|
},
|
|
@@ -152,28 +154,19 @@ export class AStorage extends AStepper {
|
|
|
152
154
|
isTheSame: {
|
|
153
155
|
gwta: `{what} is the same as {where}`,
|
|
154
156
|
action: ({ what, where }) => {
|
|
155
|
-
const c1 = this.readFile(String(what),
|
|
156
|
-
const c2 = this.readFile(String(where),
|
|
157
|
-
return Buffer.from(c1)?.equals(Buffer.from(c2))
|
|
157
|
+
const c1 = this.readFile(String(what), "binary");
|
|
158
|
+
const c2 = this.readFile(String(where), "binary");
|
|
159
|
+
return Buffer.from(c1)?.equals(Buffer.from(c2))
|
|
160
|
+
? OK
|
|
161
|
+
: actionNotOK(`contents are not the same ${what} ${where}`);
|
|
158
162
|
},
|
|
159
163
|
},
|
|
160
|
-
|
|
161
|
-
gwta: `read file {where}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
value: contents,
|
|
167
|
-
domain: DOMAIN_STRING,
|
|
168
|
-
origin: Origin.var,
|
|
169
|
-
};
|
|
170
|
-
const provenance = {
|
|
171
|
-
in: featureStep.in,
|
|
172
|
-
seq: featureStep.seqPath || [0],
|
|
173
|
-
when: 'step',
|
|
174
|
-
};
|
|
175
|
-
this.getWorld().shared._set(sv, provenance);
|
|
176
|
-
return OK;
|
|
164
|
+
readFile: {
|
|
165
|
+
gwta: `read file {where}`,
|
|
166
|
+
outputSchema: z.object({ contents: z.string() }),
|
|
167
|
+
action: async ({ where }) => {
|
|
168
|
+
const contents = await this.readFile(String(where), "utf-8");
|
|
169
|
+
return actionOKWithProducts({ contents });
|
|
177
170
|
},
|
|
178
171
|
},
|
|
179
172
|
fileIsRecent: {
|
package/build/AStorage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AStorage.js","sourceRoot":"","sources":["../src/AStorage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,
|
|
1
|
+
{"version":3,"file":"AStorage.js","sourceRoot":"","sources":["../src/AStorage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,EAAE,EAAa,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAcnF,MAAM,OAAgB,QAAS,SAAQ,QAAQ;IAC9C,WAAW,GAAG,sDAAsD,CAAC;IAErE,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC;IAO5B,KAAK,CAAC,WAAW,CAAC,GAAW;QAC5B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACtC,MAAM,MAAM,GAAY,EAAE,CAAC;QAC3B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YAC1B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,CAAC;YACpD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC;QACD,OAAO,MAA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C;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TModuleOptions, TBaseOptions } from
|
|
2
|
-
import { TMediaType } from
|
|
3
|
-
import { AStepper } from
|
|
4
|
-
import { TTag } from
|
|
1
|
+
import { TModuleOptions, TBaseOptions } from "@haibun/core/lib/execution.js";
|
|
2
|
+
import { TMediaType } from "./media-types.js";
|
|
3
|
+
import { AStepper } from "@haibun/core/lib/astepper.js";
|
|
4
|
+
import { TTag } from "@haibun/core/lib/ttag.js";
|
|
5
5
|
export declare const STORAGE_LOCATION = "STORAGE_LOCATION";
|
|
6
6
|
export declare const STORAGE_ITEM = "STORAGE_ITEM";
|
|
7
7
|
export interface IFile {
|
|
@@ -28,10 +28,10 @@ declare const DomainStorage: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
steps: {};
|
|
31
|
-
world?: import("@haibun/core/lib/
|
|
31
|
+
world?: import("@haibun/core/lib/execution.js").TWorld;
|
|
32
32
|
kind?: import("@haibun/core/lib/astepper.js").TStepperKind;
|
|
33
|
-
setWorld(world: import("@haibun/core/lib/
|
|
34
|
-
getWorld(): import("@haibun/core/lib/
|
|
33
|
+
setWorld(world: import("@haibun/core/lib/execution.js").TWorld, _steppers: AStepper[]): Promise<void>;
|
|
34
|
+
getWorld(): import("@haibun/core/lib/execution.js").TWorld;
|
|
35
35
|
startFeatureResolution?(_path: string): void;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-storage.d.ts","sourceRoot":"","sources":["../src/domain-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"domain-storage.d.ts","sourceRoot":"","sources":["../src/domain-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAmC,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAe,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,aAAa;;;kBAGP,UAAU,MAAM;;;;+BAIV,MAAM;;;;;;;;;;;;;;;;CAKvB,CAAC;AAEF,eAAe,aAAa,CAAC;AAE7B,MAAM,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,YAAY,CAAC;IACtB,aAAa,EAAE,cAAc,CAAC;IAC9B,SAAS,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAGzC;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAGlC,UAAU,CAClB"}
|
package/build/domain-storage.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { stringOrError } from
|
|
2
|
-
import { MEDIA_TYPES, MAPPED_MEDIA_TYPES } from
|
|
3
|
-
import { AStepper } from
|
|
4
|
-
export const STORAGE_LOCATION =
|
|
5
|
-
export const STORAGE_ITEM =
|
|
1
|
+
import { stringOrError } from "@haibun/core/lib/util/index.js";
|
|
2
|
+
import { MEDIA_TYPES, MAPPED_MEDIA_TYPES } from "./media-types.js";
|
|
3
|
+
import { AStepper } from "@haibun/core/lib/astepper.js";
|
|
4
|
+
export const STORAGE_LOCATION = "STORAGE_LOCATION";
|
|
5
|
+
export const STORAGE_ITEM = "STORAGE_ITEM";
|
|
6
6
|
const DomainStorage = class DomainStorage extends AStepper {
|
|
7
|
-
description =
|
|
7
|
+
description = "Storage domain types and file operations base";
|
|
8
8
|
locator = (location) => `./${location}`;
|
|
9
9
|
options = {
|
|
10
10
|
BASE_DIRECTORY: {
|
|
11
|
-
desc:
|
|
11
|
+
desc: "base for file operations",
|
|
12
12
|
parse: (input) => stringOrError(input),
|
|
13
13
|
},
|
|
14
14
|
};
|
|
@@ -27,10 +27,10 @@ export function guessMediaExt(file) {
|
|
|
27
27
|
*/
|
|
28
28
|
export function guessMediaType(file) {
|
|
29
29
|
const ext = getExtension(file);
|
|
30
|
-
const mediaType = MAPPED_MEDIA_TYPES[ext] ||
|
|
30
|
+
const mediaType = MAPPED_MEDIA_TYPES[ext] || "application/octet-stream";
|
|
31
31
|
return mediaType;
|
|
32
32
|
}
|
|
33
33
|
function getExtension(file) {
|
|
34
|
-
return file.replace(/.*\./,
|
|
34
|
+
return file.replace(/.*\./, "").toLowerCase();
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=domain-storage.js.map
|
package/build/media-types.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export declare const EMediaTypes: {
|
|
|
10
10
|
export declare const MEDIA_TYPES: {
|
|
11
11
|
[type: string]: string;
|
|
12
12
|
};
|
|
13
|
-
export type TMediaType = typeof EMediaTypes[keyof typeof EMediaTypes];
|
|
13
|
+
export type TMediaType = (typeof EMediaTypes)[keyof typeof EMediaTypes];
|
|
14
14
|
//# sourceMappingURL=media-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-types.d.ts","sourceRoot":"","sources":["../src/media-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyBrD,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAEX,eAAO,MAAM,WAAW,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"media-types.d.ts","sourceRoot":"","sources":["../src/media-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyBrD,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAEX,eAAO,MAAM,WAAW,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAOjD,CAAC;AAIF,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
package/build/media-types.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
export const MAPPED_MEDIA_TYPES = {
|
|
2
|
-
js:
|
|
3
|
-
javascript:
|
|
4
|
-
css:
|
|
5
|
-
html:
|
|
6
|
-
json:
|
|
7
|
-
png:
|
|
8
|
-
jpg:
|
|
9
|
-
jpeg:
|
|
10
|
-
gif:
|
|
11
|
-
svg:
|
|
12
|
-
ogg:
|
|
13
|
-
pdf:
|
|
14
|
-
webm:
|
|
15
|
-
weba:
|
|
16
|
-
mp4:
|
|
17
|
-
mp3:
|
|
18
|
-
wav:
|
|
19
|
-
ico:
|
|
20
|
-
woff:
|
|
21
|
-
woff2:
|
|
22
|
-
ttf:
|
|
23
|
-
otf:
|
|
24
|
-
xml:
|
|
25
|
-
|
|
2
|
+
js: "text/javascript",
|
|
3
|
+
javascript: "text/javascript",
|
|
4
|
+
css: "text/css",
|
|
5
|
+
html: "text/html",
|
|
6
|
+
json: "application/json",
|
|
7
|
+
png: "image/png",
|
|
8
|
+
jpg: "image/jpeg",
|
|
9
|
+
jpeg: "image/jpeg",
|
|
10
|
+
gif: "image/gif",
|
|
11
|
+
svg: "image/svg+xml",
|
|
12
|
+
ogg: "audio/ogg",
|
|
13
|
+
pdf: "application/pdf",
|
|
14
|
+
webm: "video/webm",
|
|
15
|
+
weba: "audio/webm",
|
|
16
|
+
mp4: "video/mp4",
|
|
17
|
+
mp3: "audio/mpeg",
|
|
18
|
+
wav: "audio/wav",
|
|
19
|
+
ico: "image/x-icon",
|
|
20
|
+
woff: "font/woff",
|
|
21
|
+
woff2: "font/woff2",
|
|
22
|
+
ttf: "font/ttf",
|
|
23
|
+
otf: "font/otf",
|
|
24
|
+
xml: "text/xml",
|
|
25
|
+
"": "inode/directory",
|
|
26
26
|
};
|
|
27
27
|
export const EMediaTypes = {
|
|
28
|
-
html:
|
|
29
|
-
video:
|
|
30
|
-
json:
|
|
31
|
-
image:
|
|
32
|
-
javascript:
|
|
33
|
-
directory:
|
|
28
|
+
html: "html",
|
|
29
|
+
video: "video",
|
|
30
|
+
json: "json",
|
|
31
|
+
image: "image",
|
|
32
|
+
javascript: "js",
|
|
33
|
+
directory: "",
|
|
34
34
|
};
|
|
35
35
|
export const MEDIA_TYPES = {
|
|
36
|
-
webm:
|
|
37
|
-
html:
|
|
38
|
-
json:
|
|
39
|
-
video:
|
|
40
|
-
js:
|
|
41
|
-
|
|
36
|
+
webm: "video",
|
|
37
|
+
html: "text/html",
|
|
38
|
+
json: "json",
|
|
39
|
+
video: "video/mp4",
|
|
40
|
+
js: "javascript",
|
|
41
|
+
"": "inode/directory",
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=media-types.js.map
|
package/build/media-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-types.js","sourceRoot":"","sources":["../src/media-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAA2B;
|
|
1
|
+
{"version":3,"file":"media-types.js","sourceRoot":"","sources":["../src/media-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAA2B;IACzD,EAAE,EAAE,iBAAiB;IACrB,UAAU,EAAE,iBAAiB;IAC7B,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,iBAAiB;IACtB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,cAAc;IACnB,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,YAAY;IACnB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,UAAU;IACf,EAAE,EAAE,iBAAiB;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,EAAE;CACJ,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAA+B;IACtD,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,WAAW;IAClB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,iBAAiB;CACrB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./build/domain-storage.js";
|