@metamask/snaps-cli 6.6.1 → 7.0.0
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/CHANGELOG.md +39 -1
- package/README.md +11 -244
- package/dist/builders.cjs +4 -98
- package/dist/builders.cjs.map +1 -1
- package/dist/builders.d.cts +28 -7
- package/dist/builders.d.cts.map +1 -1
- package/dist/builders.d.mts +28 -7
- package/dist/builders.d.mts.map +1 -1
- package/dist/builders.mjs +4 -97
- package/dist/builders.mjs.map +1 -1
- package/dist/cli.cjs +4 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts.map +1 -1
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +4 -16
- package/dist/cli.mjs.map +1 -1
- package/dist/commands/build/build.cjs +33 -7
- package/dist/commands/build/build.cjs.map +1 -1
- package/dist/commands/build/build.d.cts +2 -1
- package/dist/commands/build/build.d.cts.map +1 -1
- package/dist/commands/build/build.d.mts +2 -1
- package/dist/commands/build/build.d.mts.map +1 -1
- package/dist/commands/build/build.mjs +31 -5
- package/dist/commands/build/build.mjs.map +1 -1
- package/dist/commands/build/implementation.cjs +1 -1
- package/dist/commands/build/implementation.cjs.map +1 -1
- package/dist/commands/build/implementation.d.cts +3 -2
- package/dist/commands/build/implementation.d.cts.map +1 -1
- package/dist/commands/build/implementation.d.mts +3 -2
- package/dist/commands/build/implementation.d.mts.map +1 -1
- package/dist/commands/build/implementation.mjs +1 -1
- package/dist/commands/build/implementation.mjs.map +1 -1
- package/dist/commands/build/index.cjs +3 -14
- package/dist/commands/build/index.cjs.map +1 -1
- package/dist/commands/build/index.d.cts.map +1 -1
- package/dist/commands/build/index.d.mts.map +1 -1
- package/dist/commands/build/index.mjs +3 -14
- package/dist/commands/build/index.mjs.map +1 -1
- package/dist/commands/build/utils.cjs +25 -0
- package/dist/commands/build/utils.cjs.map +1 -0
- package/dist/commands/build/utils.d.cts +9 -0
- package/dist/commands/build/utils.d.cts.map +1 -0
- package/dist/commands/build/utils.d.mts +9 -0
- package/dist/commands/build/utils.d.mts.map +1 -0
- package/dist/commands/build/utils.mjs +21 -0
- package/dist/commands/build/utils.mjs.map +1 -0
- package/dist/commands/eval/__test__/webpack/bad/snap.config.cjs +0 -1
- package/dist/commands/eval/__test__/webpack/bad/snap.config.cjs.map +1 -1
- package/dist/commands/eval/__test__/webpack/bad/snap.config.d.cts.map +1 -1
- package/dist/commands/eval/__test__/webpack/bad/snap.config.d.mts.map +1 -1
- package/dist/commands/eval/__test__/webpack/bad/snap.config.mjs +0 -1
- package/dist/commands/eval/__test__/webpack/bad/snap.config.mjs.map +1 -1
- package/dist/commands/eval/__test__/webpack/good/snap.config.cjs +0 -1
- package/dist/commands/eval/__test__/webpack/good/snap.config.cjs.map +1 -1
- package/dist/commands/eval/__test__/webpack/good/snap.config.d.cts.map +1 -1
- package/dist/commands/eval/__test__/webpack/good/snap.config.d.mts.map +1 -1
- package/dist/commands/eval/__test__/webpack/good/snap.config.mjs +0 -1
- package/dist/commands/eval/__test__/webpack/good/snap.config.mjs.map +1 -1
- package/dist/commands/eval/__test__/webpack/snap.config.cjs +0 -1
- package/dist/commands/eval/__test__/webpack/snap.config.cjs.map +1 -1
- package/dist/commands/eval/__test__/webpack/snap.config.d.cts.map +1 -1
- package/dist/commands/eval/__test__/webpack/snap.config.d.mts.map +1 -1
- package/dist/commands/eval/__test__/webpack/snap.config.mjs +0 -1
- package/dist/commands/eval/__test__/webpack/snap.config.mjs.map +1 -1
- package/dist/commands/eval/eval.cjs +1 -1
- package/dist/commands/eval/eval.cjs.map +1 -1
- package/dist/commands/eval/eval.d.cts.map +1 -1
- package/dist/commands/eval/eval.d.mts.map +1 -1
- package/dist/commands/eval/eval.mjs +1 -1
- package/dist/commands/eval/eval.mjs.map +1 -1
- package/dist/commands/eval/index.cjs +1 -4
- package/dist/commands/eval/index.cjs.map +1 -1
- package/dist/commands/eval/index.d.cts.map +1 -1
- package/dist/commands/eval/index.d.mts.map +1 -1
- package/dist/commands/eval/index.mjs +1 -4
- package/dist/commands/eval/index.mjs.map +1 -1
- package/dist/commands/manifest/index.cjs +1 -4
- package/dist/commands/manifest/index.cjs.map +1 -1
- package/dist/commands/manifest/index.d.cts.map +1 -1
- package/dist/commands/manifest/index.d.mts.map +1 -1
- package/dist/commands/manifest/index.mjs +1 -4
- package/dist/commands/manifest/index.mjs.map +1 -1
- package/dist/commands/manifest/manifest.cjs +5 -6
- package/dist/commands/manifest/manifest.cjs.map +1 -1
- package/dist/commands/manifest/manifest.d.cts.map +1 -1
- package/dist/commands/manifest/manifest.d.mts.map +1 -1
- package/dist/commands/manifest/manifest.mjs +5 -6
- package/dist/commands/manifest/manifest.mjs.map +1 -1
- package/dist/commands/serve/index.cjs +2 -2
- package/dist/commands/serve/index.cjs.map +1 -1
- package/dist/commands/serve/index.d.cts.map +1 -1
- package/dist/commands/serve/index.d.mts.map +1 -1
- package/dist/commands/serve/index.mjs +2 -2
- package/dist/commands/serve/index.mjs.map +1 -1
- package/dist/commands/watch/implementation.cjs +2 -0
- package/dist/commands/watch/implementation.cjs.map +1 -1
- package/dist/commands/watch/implementation.d.cts +2 -2
- package/dist/commands/watch/implementation.d.cts.map +1 -1
- package/dist/commands/watch/implementation.d.mts +2 -2
- package/dist/commands/watch/implementation.d.mts.map +1 -1
- package/dist/commands/watch/implementation.mjs +2 -0
- package/dist/commands/watch/implementation.mjs.map +1 -1
- package/dist/commands/watch/index.cjs +2 -17
- package/dist/commands/watch/index.cjs.map +1 -1
- package/dist/commands/watch/index.d.cts.map +1 -1
- package/dist/commands/watch/index.d.mts.map +1 -1
- package/dist/commands/watch/index.mjs +2 -17
- package/dist/commands/watch/index.mjs.map +1 -1
- package/dist/commands/watch/watch.cjs +1 -1
- package/dist/commands/watch/watch.cjs.map +1 -1
- package/dist/commands/watch/watch.d.cts.map +1 -1
- package/dist/commands/watch/watch.d.mts.map +1 -1
- package/dist/commands/watch/watch.mjs +1 -1
- package/dist/commands/watch/watch.mjs.map +1 -1
- package/dist/config.cjs +11 -155
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +216 -314
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +216 -314
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +13 -155
- package/dist/config.mjs.map +1 -1
- package/dist/main.cjs +0 -1
- package/dist/main.cjs.map +1 -1
- package/dist/main.mjs +0 -1
- package/dist/main.mjs.map +1 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +0 -1
- package/dist/utils/index.d.cts.map +1 -1
- package/dist/utils/index.d.mts +0 -1
- package/dist/utils/index.d.mts.map +1 -1
- package/dist/utils/index.mjs +0 -1
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/logging.cjs +16 -2
- package/dist/utils/logging.cjs.map +1 -1
- package/dist/utils/logging.d.cts +8 -1
- package/dist/utils/logging.d.cts.map +1 -1
- package/dist/utils/logging.d.mts +8 -1
- package/dist/utils/logging.d.mts.map +1 -1
- package/dist/utils/logging.mjs +15 -2
- package/dist/utils/logging.mjs.map +1 -1
- package/dist/utils/steps.cjs +11 -6
- package/dist/utils/steps.cjs.map +1 -1
- package/dist/utils/steps.d.cts +2 -2
- package/dist/utils/steps.d.cts.map +1 -1
- package/dist/utils/steps.d.mts +2 -2
- package/dist/utils/steps.d.mts.map +1 -1
- package/dist/utils/steps.mjs +11 -6
- package/dist/utils/steps.mjs.map +1 -1
- package/dist/webpack/compiler.cjs.map +1 -1
- package/dist/webpack/compiler.d.cts +2 -2
- package/dist/webpack/compiler.d.cts.map +1 -1
- package/dist/webpack/compiler.d.mts +2 -2
- package/dist/webpack/compiler.d.mts.map +1 -1
- package/dist/webpack/compiler.mjs.map +1 -1
- package/dist/webpack/config.cjs +8 -2
- package/dist/webpack/config.cjs.map +1 -1
- package/dist/webpack/config.d.cts +6 -2
- package/dist/webpack/config.d.cts.map +1 -1
- package/dist/webpack/config.d.mts +6 -2
- package/dist/webpack/config.d.mts.map +1 -1
- package/dist/webpack/config.mjs +8 -2
- package/dist/webpack/config.mjs.map +1 -1
- package/dist/webpack/loaders/function.cjs +7 -10
- package/dist/webpack/loaders/function.cjs.map +1 -1
- package/dist/webpack/loaders/function.d.cts +1 -0
- package/dist/webpack/loaders/function.d.cts.map +1 -1
- package/dist/webpack/loaders/function.d.mts +1 -0
- package/dist/webpack/loaders/function.d.mts.map +1 -1
- package/dist/webpack/loaders/function.mjs +6 -9
- package/dist/webpack/loaders/function.mjs.map +1 -1
- package/dist/webpack/loaders/index.cjs +1 -3
- package/dist/webpack/loaders/index.cjs.map +1 -1
- package/dist/webpack/loaders/index.d.cts +0 -1
- package/dist/webpack/loaders/index.d.cts.map +1 -1
- package/dist/webpack/loaders/index.d.mts +0 -1
- package/dist/webpack/loaders/index.d.mts.map +1 -1
- package/dist/webpack/loaders/index.mjs +0 -1
- package/dist/webpack/loaders/index.mjs.map +1 -1
- package/dist/webpack/loaders/wasm.cjs +0 -2
- package/dist/webpack/loaders/wasm.cjs.map +1 -1
- package/dist/webpack/loaders/wasm.d.cts.map +1 -1
- package/dist/webpack/loaders/wasm.d.mts.map +1 -1
- package/dist/webpack/loaders/wasm.mjs +0 -2
- package/dist/webpack/loaders/wasm.mjs.map +1 -1
- package/dist/webpack/plugins.cjs +15 -20
- package/dist/webpack/plugins.cjs.map +1 -1
- package/dist/webpack/plugins.d.cts +13 -3
- package/dist/webpack/plugins.d.cts.map +1 -1
- package/dist/webpack/plugins.d.mts +13 -3
- package/dist/webpack/plugins.d.mts.map +1 -1
- package/dist/webpack/plugins.mjs +4 -9
- package/dist/webpack/plugins.mjs.map +1 -1
- package/dist/webpack/utils.cjs +5 -21
- package/dist/webpack/utils.cjs.map +1 -1
- package/dist/webpack/utils.d.cts +6 -36
- package/dist/webpack/utils.d.cts.map +1 -1
- package/dist/webpack/utils.d.mts +6 -36
- package/dist/webpack/utils.d.mts.map +1 -1
- package/dist/webpack/utils.mjs +4 -18
- package/dist/webpack/utils.mjs.map +1 -1
- package/package.json +14 -38
- package/dist/commands/eval/__test__/browserify/bad/snap.config.cjs +0 -10
- package/dist/commands/eval/__test__/browserify/bad/snap.config.cjs.map +0 -1
- package/dist/commands/eval/__test__/browserify/bad/snap.config.d.cts +0 -4
- package/dist/commands/eval/__test__/browserify/bad/snap.config.d.cts.map +0 -1
- package/dist/commands/eval/__test__/browserify/bad/snap.config.d.mts +0 -4
- package/dist/commands/eval/__test__/browserify/bad/snap.config.d.mts.map +0 -1
- package/dist/commands/eval/__test__/browserify/bad/snap.config.mjs +0 -8
- package/dist/commands/eval/__test__/browserify/bad/snap.config.mjs.map +0 -1
- package/dist/commands/eval/__test__/browserify/good/snap.config.cjs +0 -10
- package/dist/commands/eval/__test__/browserify/good/snap.config.cjs.map +0 -1
- package/dist/commands/eval/__test__/browserify/good/snap.config.d.cts +0 -4
- package/dist/commands/eval/__test__/browserify/good/snap.config.d.cts.map +0 -1
- package/dist/commands/eval/__test__/browserify/good/snap.config.d.mts +0 -4
- package/dist/commands/eval/__test__/browserify/good/snap.config.d.mts.map +0 -1
- package/dist/commands/eval/__test__/browserify/good/snap.config.mjs +0 -8
- package/dist/commands/eval/__test__/browserify/good/snap.config.mjs.map +0 -1
- package/dist/utils/legacy.cjs +0 -53
- package/dist/utils/legacy.cjs.map +0 -1
- package/dist/utils/legacy.d.cts +0 -28
- package/dist/utils/legacy.d.cts.map +0 -1
- package/dist/utils/legacy.d.mts +0 -28
- package/dist/utils/legacy.d.mts.map +0 -1
- package/dist/utils/legacy.mjs +0 -47
- package/dist/utils/legacy.mjs.map +0 -1
- package/dist/webpack/loaders/browserify.cjs +0 -84
- package/dist/webpack/loaders/browserify.cjs.map +0 -1
- package/dist/webpack/loaders/browserify.d.cts +0 -18
- package/dist/webpack/loaders/browserify.d.cts.map +0 -1
- package/dist/webpack/loaders/browserify.d.mts +0 -18
- package/dist/webpack/loaders/browserify.d.mts.map +0 -1
- package/dist/webpack/loaders/browserify.mjs +0 -88
- package/dist/webpack/loaders/browserify.mjs.map +0 -1
package/dist/config.d.cts
CHANGED
|
@@ -1,157 +1,11 @@
|
|
|
1
1
|
import type { Infer } from "@metamask/superstruct";
|
|
2
|
-
import type { BrowserifyObject } from "browserify";
|
|
3
2
|
import type { Configuration as WebpackConfiguration } from "webpack";
|
|
4
|
-
import { TranspilationModes } from "./builders.cjs";
|
|
5
3
|
import type { YargsArgs } from "./types/yargs.d.cjs";
|
|
6
4
|
/**
|
|
7
5
|
* The configuration for the Snaps CLI, stored as `snap.config.js` or
|
|
8
6
|
* `snap.config.ts` in the root of the project.
|
|
9
|
-
*
|
|
10
|
-
* @deprecated The Browserify bundler is deprecated and will be removed in a
|
|
11
|
-
* future release. Use the Webpack bundler instead.
|
|
12
7
|
*/
|
|
13
|
-
export type
|
|
14
|
-
/**
|
|
15
|
-
* The bundler to use to build the snap. For backwards compatibility, if not
|
|
16
|
-
* specified, Browserify will be used. However, the Browserify bundler is
|
|
17
|
-
* deprecated and will be removed in a future release, so it's recommended to
|
|
18
|
-
* use the Webpack bundler instead.
|
|
19
|
-
*/
|
|
20
|
-
bundler: 'browserify';
|
|
21
|
-
/**
|
|
22
|
-
* The options for the Snaps CLI. These are merged with the options passed to
|
|
23
|
-
* the CLI, with the CLI options taking precedence.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated The Browserify bundler is deprecated and will be removed in a
|
|
26
|
-
* future release. Use the Webpack bundler instead.
|
|
27
|
-
*/
|
|
28
|
-
cliOptions?: {
|
|
29
|
-
/**
|
|
30
|
-
* The path to the snap bundle file.
|
|
31
|
-
*
|
|
32
|
-
* @default 'dist/bundle.js'
|
|
33
|
-
*/
|
|
34
|
-
bundle?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The directory to output the snap to. This is only used if `bundle` is
|
|
37
|
-
* not specified.
|
|
38
|
-
*
|
|
39
|
-
* @default 'dist'
|
|
40
|
-
*/
|
|
41
|
-
dist?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Whether to attempt to evaluate the snap in SES. This can catch some errors
|
|
44
|
-
* that would otherwise only be caught at runtime.
|
|
45
|
-
*
|
|
46
|
-
* @default true
|
|
47
|
-
*/
|
|
48
|
-
eval?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Whether to validate the snap manifest.
|
|
51
|
-
*
|
|
52
|
-
* @default true
|
|
53
|
-
*/
|
|
54
|
-
manifest?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* The name of the bundle file. This is only used if `bundle` is not
|
|
57
|
-
* specified.
|
|
58
|
-
*
|
|
59
|
-
* @default 'bundle.js'
|
|
60
|
-
*/
|
|
61
|
-
outfileName?: string;
|
|
62
|
-
/**
|
|
63
|
-
* The port to run the server on.
|
|
64
|
-
*
|
|
65
|
-
* @default 8081
|
|
66
|
-
*/
|
|
67
|
-
port?: number;
|
|
68
|
-
/**
|
|
69
|
-
* The root directory to serve the snap from.
|
|
70
|
-
*
|
|
71
|
-
* @default `process.cwd()`
|
|
72
|
-
*/
|
|
73
|
-
root?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Whether to generate source maps for the snap bundle.
|
|
76
|
-
*
|
|
77
|
-
* @default false
|
|
78
|
-
*/
|
|
79
|
-
sourceMaps?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* The path to the snap entry point.
|
|
82
|
-
*
|
|
83
|
-
* @default 'src/index.js'
|
|
84
|
-
*/
|
|
85
|
-
src?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Whether to remove comments from the bundle.
|
|
88
|
-
*
|
|
89
|
-
* @default true
|
|
90
|
-
*/
|
|
91
|
-
stripComments?: boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Whether to suppress warnings.
|
|
94
|
-
*
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
suppressWarnings?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* The transpilation mode to use, which determines which files are
|
|
100
|
-
* transpiled.
|
|
101
|
-
*
|
|
102
|
-
* - `'localAndDeps'`: Transpile the snap entry point and all dependencies.
|
|
103
|
-
* - `'localOnly'`: Transpile only the snap entry point.
|
|
104
|
-
* - `'none'`: Don't transpile any files.
|
|
105
|
-
*
|
|
106
|
-
* @default 'localOnly'
|
|
107
|
-
*/
|
|
108
|
-
transpilationMode?: 'localAndDeps' | 'localOnly' | 'none';
|
|
109
|
-
/**
|
|
110
|
-
* The dependencies to transpile when `transpilationMode` is set to
|
|
111
|
-
* `'localAndDeps'`. If not specified, all dependencies will be transpiled.
|
|
112
|
-
*/
|
|
113
|
-
depsToTranspile?: string[];
|
|
114
|
-
/**
|
|
115
|
-
* Whether to show original errors.
|
|
116
|
-
*
|
|
117
|
-
* @default true
|
|
118
|
-
*/
|
|
119
|
-
verboseErrors?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Whether to write the updated manifest to disk.
|
|
122
|
-
*
|
|
123
|
-
* @default true
|
|
124
|
-
*/
|
|
125
|
-
writeManifest?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Whether to serve the snap locally.
|
|
128
|
-
*
|
|
129
|
-
* @default true
|
|
130
|
-
*/
|
|
131
|
-
serve?: boolean;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* A function that can be used to customize the Browserify instance used to
|
|
135
|
-
* build the snap.
|
|
136
|
-
*
|
|
137
|
-
* @param bundler - The Browserify instance.
|
|
138
|
-
* @deprecated The Browserify bundler is deprecated and will be removed in a
|
|
139
|
-
* future release. Use the Webpack bundler instead.
|
|
140
|
-
*/
|
|
141
|
-
bundlerCustomizer?: (bundler: BrowserifyObject) => void;
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* The configuration for the Snaps CLI, stored as `snap.config.js` or
|
|
145
|
-
* `snap.config.ts` in the root of the project.
|
|
146
|
-
*/
|
|
147
|
-
export type SnapWebpackConfig = {
|
|
148
|
-
/**
|
|
149
|
-
* The bundler to use to build the snap. For backwards compatibility, if not
|
|
150
|
-
* specified, Browserify will be used. However, the Browserify bundler is
|
|
151
|
-
* deprecated and will be removed in a future release, so it's recommended to
|
|
152
|
-
* use the Webpack bundler instead.
|
|
153
|
-
*/
|
|
154
|
-
bundler?: 'webpack';
|
|
8
|
+
export type SnapConfig = {
|
|
155
9
|
/**
|
|
156
10
|
* The path to the snap entry point. This should be a JavaScript or TypeScript
|
|
157
11
|
* file.
|
|
@@ -428,80 +282,9 @@ export type SnapWebpackConfig = {
|
|
|
428
282
|
wasm?: boolean;
|
|
429
283
|
};
|
|
430
284
|
};
|
|
431
|
-
/**
|
|
432
|
-
* The configuration for the Snaps CLI, stored as `snap.config.js` or
|
|
433
|
-
* `snap.config.ts` in the root of the project.
|
|
434
|
-
*/
|
|
435
|
-
export type SnapConfig = SnapBrowserifyConfig | SnapWebpackConfig;
|
|
436
|
-
type SnapsBrowserifyBundlerCustomizerFunction = (bundler: BrowserifyObject) => void;
|
|
437
|
-
export declare const SnapsBrowserifyConfigStruct: import("@metamask/superstruct").Struct<{
|
|
438
|
-
bundler: "browserify";
|
|
439
|
-
cliOptions: {
|
|
440
|
-
dist: string;
|
|
441
|
-
eval: boolean;
|
|
442
|
-
manifest: boolean;
|
|
443
|
-
port: number;
|
|
444
|
-
outfileName: string;
|
|
445
|
-
root: string;
|
|
446
|
-
sourceMaps: boolean;
|
|
447
|
-
src: string;
|
|
448
|
-
stripComments: boolean;
|
|
449
|
-
suppressWarnings: boolean;
|
|
450
|
-
transpilationMode: "localAndDeps" | "localOnly" | "none";
|
|
451
|
-
depsToTranspile: string[];
|
|
452
|
-
verboseErrors: boolean;
|
|
453
|
-
writeManifest: boolean;
|
|
454
|
-
serve: boolean;
|
|
455
|
-
bundle?: string | undefined;
|
|
456
|
-
};
|
|
457
|
-
bundlerCustomizer?: SnapsBrowserifyBundlerCustomizerFunction | undefined;
|
|
458
|
-
}, {
|
|
459
|
-
bundler: import("@metamask/superstruct").Struct<"browserify", null>;
|
|
460
|
-
cliOptions: import("@metamask/superstruct").Struct<{
|
|
461
|
-
dist: string;
|
|
462
|
-
eval: boolean;
|
|
463
|
-
manifest: boolean;
|
|
464
|
-
port: number;
|
|
465
|
-
outfileName: string;
|
|
466
|
-
root: string;
|
|
467
|
-
sourceMaps: boolean;
|
|
468
|
-
src: string;
|
|
469
|
-
stripComments: boolean;
|
|
470
|
-
suppressWarnings: boolean;
|
|
471
|
-
transpilationMode: "localAndDeps" | "localOnly" | "none";
|
|
472
|
-
depsToTranspile: string[];
|
|
473
|
-
verboseErrors: boolean;
|
|
474
|
-
writeManifest: boolean;
|
|
475
|
-
serve: boolean;
|
|
476
|
-
bundle?: string | undefined;
|
|
477
|
-
}, {
|
|
478
|
-
bundle: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
479
|
-
dist: import("@metamask/superstruct").Struct<string, null>;
|
|
480
|
-
eval: import("@metamask/superstruct").Struct<boolean, null>;
|
|
481
|
-
manifest: import("@metamask/superstruct").Struct<boolean, null>;
|
|
482
|
-
port: import("@metamask/superstruct").Struct<number, null>;
|
|
483
|
-
outfileName: import("@metamask/superstruct").Struct<string, null>;
|
|
484
|
-
root: import("@metamask/superstruct").Struct<string, null>;
|
|
485
|
-
sourceMaps: import("@metamask/superstruct").Struct<boolean, null>;
|
|
486
|
-
src: import("@metamask/superstruct").Struct<string, null>;
|
|
487
|
-
stripComments: import("@metamask/superstruct").Struct<boolean, null>;
|
|
488
|
-
suppressWarnings: import("@metamask/superstruct").Struct<boolean, null>;
|
|
489
|
-
transpilationMode: import("@metamask/superstruct").Struct<"localAndDeps" | "localOnly" | "none", [head: import("@metamask/superstruct").Struct<"localAndDeps", null>, import("@metamask/superstruct").Struct<"localOnly", null>, import("@metamask/superstruct").Struct<"none", null>]>;
|
|
490
|
-
depsToTranspile: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
491
|
-
verboseErrors: import("@metamask/superstruct").Struct<boolean, null>;
|
|
492
|
-
writeManifest: import("@metamask/superstruct").Struct<boolean, null>;
|
|
493
|
-
serve: import("@metamask/superstruct").Struct<boolean, null>;
|
|
494
|
-
}>;
|
|
495
|
-
bundlerCustomizer: import("@metamask/superstruct").Struct<SnapsBrowserifyBundlerCustomizerFunction | undefined, null>;
|
|
496
|
-
}>;
|
|
497
285
|
type SnapsWebpackCustomizeWebpackConfigFunction = (config: WebpackConfiguration) => WebpackConfiguration;
|
|
498
|
-
export declare const
|
|
286
|
+
export declare const SnapsConfigStruct: import("@metamask/superstruct").Struct<{
|
|
499
287
|
input: string;
|
|
500
|
-
manifest: {
|
|
501
|
-
path: string;
|
|
502
|
-
update: boolean;
|
|
503
|
-
};
|
|
504
|
-
bundler: "webpack";
|
|
505
288
|
sourceMap: boolean | "inline";
|
|
506
289
|
evaluate: boolean;
|
|
507
290
|
output: {
|
|
@@ -510,6 +293,10 @@ export declare const SnapsWebpackConfigStruct: import("@metamask/superstruct").S
|
|
|
510
293
|
clean: boolean;
|
|
511
294
|
minimize: boolean;
|
|
512
295
|
};
|
|
296
|
+
manifest: {
|
|
297
|
+
path: string;
|
|
298
|
+
update: boolean;
|
|
299
|
+
};
|
|
513
300
|
server: {
|
|
514
301
|
port: number;
|
|
515
302
|
root: string;
|
|
@@ -524,8 +311,8 @@ export declare const SnapsWebpackConfigStruct: import("@metamask/superstruct").S
|
|
|
524
311
|
buffer: boolean;
|
|
525
312
|
};
|
|
526
313
|
polyfills: boolean | {
|
|
527
|
-
path: boolean;
|
|
528
314
|
stream: boolean;
|
|
315
|
+
path: boolean;
|
|
529
316
|
buffer: boolean;
|
|
530
317
|
assert: boolean;
|
|
531
318
|
console: boolean;
|
|
@@ -565,7 +352,6 @@ export declare const SnapsWebpackConfigStruct: import("@metamask/superstruct").S
|
|
|
565
352
|
};
|
|
566
353
|
customizeWebpackConfig?: SnapsWebpackCustomizeWebpackConfigFunction | undefined;
|
|
567
354
|
}, {
|
|
568
|
-
bundler: import("@metamask/superstruct").Struct<"webpack", null>;
|
|
569
355
|
input: import("@metamask/superstruct").Struct<string, null>;
|
|
570
356
|
sourceMap: import("@metamask/superstruct").Struct<boolean | "inline", [head: import("@metamask/superstruct").Struct<boolean, null>, import("@metamask/superstruct").Struct<"inline", null>]>;
|
|
571
357
|
evaluate: import("@metamask/superstruct").Struct<boolean, null>;
|
|
@@ -615,8 +401,8 @@ export declare const SnapsWebpackConfigStruct: import("@metamask/superstruct").S
|
|
|
615
401
|
buffer: import("@metamask/superstruct").Struct<boolean, null>;
|
|
616
402
|
}>;
|
|
617
403
|
polyfills: import("@metamask/superstruct").Struct<boolean | {
|
|
618
|
-
path: boolean;
|
|
619
404
|
stream: boolean;
|
|
405
|
+
path: boolean;
|
|
620
406
|
buffer: boolean;
|
|
621
407
|
assert: boolean;
|
|
622
408
|
console: boolean;
|
|
@@ -644,8 +430,8 @@ export declare const SnapsWebpackConfigStruct: import("@metamask/superstruct").S
|
|
|
644
430
|
vm: boolean;
|
|
645
431
|
zlib: boolean;
|
|
646
432
|
}, [head: import("@metamask/superstruct").Struct<boolean, null>, import("@metamask/superstruct").Struct<{
|
|
647
|
-
path: boolean;
|
|
648
433
|
stream: boolean;
|
|
434
|
+
path: boolean;
|
|
649
435
|
buffer: boolean;
|
|
650
436
|
assert: boolean;
|
|
651
437
|
console: boolean;
|
|
@@ -721,61 +507,15 @@ export declare const SnapsWebpackConfigStruct: import("@metamask/superstruct").S
|
|
|
721
507
|
wasm: import("@metamask/superstruct").Struct<boolean, null>;
|
|
722
508
|
}>;
|
|
723
509
|
}>;
|
|
724
|
-
export
|
|
725
|
-
bundler: "browserify" | "webpack";
|
|
726
|
-
}, {
|
|
727
|
-
bundler: import("@metamask/superstruct").Struct<"browserify" | "webpack", [head: import("@metamask/superstruct").Struct<"browserify", null>, import("@metamask/superstruct").Struct<"webpack", null>]>;
|
|
728
|
-
}>;
|
|
729
|
-
export declare const LegacyOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
730
|
-
transpilationMode: TranspilationModes.LocalAndDeps;
|
|
731
|
-
depsToTranspile: string[];
|
|
732
|
-
writeManifest: boolean;
|
|
733
|
-
bundlerCustomizer?: SnapsBrowserifyBundlerCustomizerFunction | undefined;
|
|
734
|
-
} | {
|
|
735
|
-
transpilationMode: TranspilationModes.LocalOnly | TranspilationModes.None;
|
|
736
|
-
depsToTranspile: unknown[];
|
|
737
|
-
writeManifest: boolean;
|
|
738
|
-
bundlerCustomizer?: SnapsBrowserifyBundlerCustomizerFunction | undefined;
|
|
739
|
-
}, [head: import("@metamask/superstruct").Struct<{
|
|
740
|
-
transpilationMode: TranspilationModes.LocalAndDeps;
|
|
741
|
-
depsToTranspile: string[];
|
|
742
|
-
writeManifest: boolean;
|
|
743
|
-
bundlerCustomizer?: SnapsBrowserifyBundlerCustomizerFunction | undefined;
|
|
744
|
-
}, {
|
|
745
|
-
depsToTranspile: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
|
|
746
|
-
transpilationMode: import("@metamask/superstruct").Struct<TranspilationModes.LocalAndDeps, null>;
|
|
747
|
-
writeManifest: import("@metamask/superstruct").Struct<boolean, null>;
|
|
748
|
-
bundlerCustomizer: import("@metamask/superstruct").Struct<SnapsBrowserifyBundlerCustomizerFunction | undefined, null>;
|
|
749
|
-
}>, import("@metamask/superstruct").Struct<{
|
|
750
|
-
transpilationMode: TranspilationModes.LocalOnly | TranspilationModes.None;
|
|
751
|
-
depsToTranspile: unknown[];
|
|
752
|
-
writeManifest: boolean;
|
|
753
|
-
bundlerCustomizer?: SnapsBrowserifyBundlerCustomizerFunction | undefined;
|
|
754
|
-
}, {
|
|
755
|
-
depsToTranspile: import("@metamask/superstruct").Struct<unknown[], undefined>;
|
|
756
|
-
transpilationMode: import("@metamask/superstruct").Struct<TranspilationModes.LocalOnly | TranspilationModes.None, [head: import("@metamask/superstruct").Struct<TranspilationModes.LocalOnly, null>, import("@metamask/superstruct").Struct<TranspilationModes.None, null>]>;
|
|
757
|
-
writeManifest: import("@metamask/superstruct").Struct<boolean, null>;
|
|
758
|
-
bundlerCustomizer: import("@metamask/superstruct").Struct<SnapsBrowserifyBundlerCustomizerFunction | undefined, null>;
|
|
759
|
-
}>]>;
|
|
760
|
-
export type LegacyOptions = Infer<typeof LegacyOptionsStruct>;
|
|
761
|
-
export type ProcessedBrowserifyConfig = Infer<typeof SnapsBrowserifyConfigStruct>;
|
|
762
|
-
export type ProcessedWebpackConfig = Infer<typeof SnapsWebpackConfigStruct> & {
|
|
763
|
-
/**
|
|
764
|
-
* The legacy Browserify config, if the bundler is Browserify. This is used
|
|
765
|
-
* to support the legacy config format.
|
|
766
|
-
*/
|
|
767
|
-
legacy?: LegacyOptions;
|
|
768
|
-
};
|
|
769
|
-
export type ProcessedConfig = ProcessedWebpackConfig;
|
|
510
|
+
export type ProcessedConfig = Infer<typeof SnapsConfigStruct>;
|
|
770
511
|
/**
|
|
771
512
|
* Get a validated snap config. This validates the config and adds default
|
|
772
513
|
* values for any missing properties.
|
|
773
514
|
*
|
|
774
515
|
* @param config - The config to validate.
|
|
775
|
-
* @param argv - The CLI arguments.
|
|
776
516
|
* @returns The validated config.
|
|
777
517
|
*/
|
|
778
|
-
export declare function getConfig(config: unknown
|
|
518
|
+
export declare function getConfig(config: unknown): ProcessedConfig;
|
|
779
519
|
/**
|
|
780
520
|
* Load a snap config from a file. This supports both JavaScript and TypeScript
|
|
781
521
|
* config files, in the CommonJS module format and the ES module format.
|
|
@@ -784,23 +524,157 @@ export declare function getConfig(config: unknown, argv: YargsArgs): ProcessedCo
|
|
|
784
524
|
* `module.exports` or `export default`.
|
|
785
525
|
*
|
|
786
526
|
* @param path - The full path to the config file.
|
|
787
|
-
* @param argv - The CLI arguments.
|
|
788
527
|
* @returns The validated config.
|
|
789
528
|
* @throws If the config file is invalid, or if the config file does not have a
|
|
790
529
|
* default export.
|
|
791
530
|
*/
|
|
792
|
-
export declare function loadConfig(path: string
|
|
531
|
+
export declare function loadConfig(path: string): Promise<{
|
|
532
|
+
input: string;
|
|
533
|
+
sourceMap: boolean | "inline";
|
|
534
|
+
evaluate: boolean;
|
|
535
|
+
output: {
|
|
536
|
+
path: string;
|
|
537
|
+
filename: string;
|
|
538
|
+
clean: boolean;
|
|
539
|
+
minimize: boolean;
|
|
540
|
+
};
|
|
541
|
+
manifest: {
|
|
542
|
+
path: string;
|
|
543
|
+
update: boolean;
|
|
544
|
+
};
|
|
545
|
+
server: {
|
|
546
|
+
port: number;
|
|
547
|
+
root: string;
|
|
548
|
+
enabled: boolean;
|
|
549
|
+
};
|
|
550
|
+
environment: Record<string, unknown>;
|
|
551
|
+
stats: {
|
|
552
|
+
verbose: boolean;
|
|
553
|
+
builtIns: false | {
|
|
554
|
+
ignore: string[];
|
|
555
|
+
};
|
|
556
|
+
buffer: boolean;
|
|
557
|
+
};
|
|
558
|
+
polyfills: boolean | {
|
|
559
|
+
stream: boolean;
|
|
560
|
+
path: boolean;
|
|
561
|
+
buffer: boolean;
|
|
562
|
+
assert: boolean;
|
|
563
|
+
console: boolean;
|
|
564
|
+
constants: boolean;
|
|
565
|
+
crypto: boolean;
|
|
566
|
+
domain: boolean;
|
|
567
|
+
events: boolean;
|
|
568
|
+
http: boolean;
|
|
569
|
+
https: boolean;
|
|
570
|
+
os: boolean;
|
|
571
|
+
punycode: boolean;
|
|
572
|
+
process: boolean;
|
|
573
|
+
querystring: boolean;
|
|
574
|
+
_stream_duplex: boolean;
|
|
575
|
+
_stream_passthrough: boolean;
|
|
576
|
+
_stream_readable: boolean;
|
|
577
|
+
_stream_transform: boolean;
|
|
578
|
+
_stream_writable: boolean;
|
|
579
|
+
string_decoder: boolean;
|
|
580
|
+
sys: boolean;
|
|
581
|
+
timers: boolean;
|
|
582
|
+
tty: boolean;
|
|
583
|
+
url: boolean;
|
|
584
|
+
util: boolean;
|
|
585
|
+
vm: boolean;
|
|
586
|
+
zlib: boolean;
|
|
587
|
+
};
|
|
588
|
+
typescript: {
|
|
589
|
+
enabled: boolean;
|
|
590
|
+
configFile: string;
|
|
591
|
+
};
|
|
592
|
+
features: {
|
|
593
|
+
images: boolean;
|
|
594
|
+
};
|
|
595
|
+
experimental: {
|
|
596
|
+
wasm: boolean;
|
|
597
|
+
};
|
|
598
|
+
customizeWebpackConfig?: SnapsWebpackCustomizeWebpackConfigFunction | undefined;
|
|
599
|
+
}>;
|
|
793
600
|
/**
|
|
794
601
|
* Resolve a snap config. This function will look for a `snap.config.js` or
|
|
795
602
|
* `snap.config.ts` file in the current or specified directory.
|
|
796
603
|
*
|
|
797
604
|
* @param path - The path to resolve the snap config from. Defaults to the
|
|
798
605
|
* current working directory.
|
|
799
|
-
* @param argv - The CLI arguments.
|
|
800
606
|
* @returns The resolved and validated snap config.
|
|
801
607
|
* @throws If a snap config could not be found.
|
|
802
608
|
*/
|
|
803
|
-
export declare function resolveConfig(path: string
|
|
609
|
+
export declare function resolveConfig(path: string): Promise<{
|
|
610
|
+
input: string;
|
|
611
|
+
sourceMap: boolean | "inline";
|
|
612
|
+
evaluate: boolean;
|
|
613
|
+
output: {
|
|
614
|
+
path: string;
|
|
615
|
+
filename: string;
|
|
616
|
+
clean: boolean;
|
|
617
|
+
minimize: boolean;
|
|
618
|
+
};
|
|
619
|
+
manifest: {
|
|
620
|
+
path: string;
|
|
621
|
+
update: boolean;
|
|
622
|
+
};
|
|
623
|
+
server: {
|
|
624
|
+
port: number;
|
|
625
|
+
root: string;
|
|
626
|
+
enabled: boolean;
|
|
627
|
+
};
|
|
628
|
+
environment: Record<string, unknown>;
|
|
629
|
+
stats: {
|
|
630
|
+
verbose: boolean;
|
|
631
|
+
builtIns: false | {
|
|
632
|
+
ignore: string[];
|
|
633
|
+
};
|
|
634
|
+
buffer: boolean;
|
|
635
|
+
};
|
|
636
|
+
polyfills: boolean | {
|
|
637
|
+
stream: boolean;
|
|
638
|
+
path: boolean;
|
|
639
|
+
buffer: boolean;
|
|
640
|
+
assert: boolean;
|
|
641
|
+
console: boolean;
|
|
642
|
+
constants: boolean;
|
|
643
|
+
crypto: boolean;
|
|
644
|
+
domain: boolean;
|
|
645
|
+
events: boolean;
|
|
646
|
+
http: boolean;
|
|
647
|
+
https: boolean;
|
|
648
|
+
os: boolean;
|
|
649
|
+
punycode: boolean;
|
|
650
|
+
process: boolean;
|
|
651
|
+
querystring: boolean;
|
|
652
|
+
_stream_duplex: boolean;
|
|
653
|
+
_stream_passthrough: boolean;
|
|
654
|
+
_stream_readable: boolean;
|
|
655
|
+
_stream_transform: boolean;
|
|
656
|
+
_stream_writable: boolean;
|
|
657
|
+
string_decoder: boolean;
|
|
658
|
+
sys: boolean;
|
|
659
|
+
timers: boolean;
|
|
660
|
+
tty: boolean;
|
|
661
|
+
url: boolean;
|
|
662
|
+
util: boolean;
|
|
663
|
+
vm: boolean;
|
|
664
|
+
zlib: boolean;
|
|
665
|
+
};
|
|
666
|
+
typescript: {
|
|
667
|
+
enabled: boolean;
|
|
668
|
+
configFile: string;
|
|
669
|
+
};
|
|
670
|
+
features: {
|
|
671
|
+
images: boolean;
|
|
672
|
+
};
|
|
673
|
+
experimental: {
|
|
674
|
+
wasm: boolean;
|
|
675
|
+
};
|
|
676
|
+
customizeWebpackConfig?: SnapsWebpackCustomizeWebpackConfigFunction | undefined;
|
|
677
|
+
}>;
|
|
804
678
|
/**
|
|
805
679
|
* Get a snap config from the CLI arguments. This will either load the config
|
|
806
680
|
* from the specified config file, or resolve the config from the current
|
|
@@ -810,46 +684,74 @@ export declare function resolveConfig(path: string, argv: YargsArgs): Promise<Pr
|
|
|
810
684
|
* @param cwd - The current working directory. Defaults to `process.cwd()`.
|
|
811
685
|
* @returns The resolved and validated snap config.
|
|
812
686
|
*/
|
|
813
|
-
export declare function getConfigByArgv(argv: YargsArgs, cwd?: string): Promise<
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
manifest: boolean;
|
|
687
|
+
export declare function getConfigByArgv(argv: YargsArgs, cwd?: string): Promise<{
|
|
688
|
+
input: string;
|
|
689
|
+
sourceMap: boolean | "inline";
|
|
690
|
+
evaluate: boolean;
|
|
691
|
+
output: {
|
|
692
|
+
path: string;
|
|
693
|
+
filename: string;
|
|
694
|
+
clean: boolean;
|
|
695
|
+
minimize: boolean;
|
|
696
|
+
};
|
|
697
|
+
manifest: {
|
|
698
|
+
path: string;
|
|
699
|
+
update: boolean;
|
|
700
|
+
};
|
|
701
|
+
server: {
|
|
829
702
|
port: number;
|
|
830
|
-
outfileName: string;
|
|
831
703
|
root: string;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
704
|
+
enabled: boolean;
|
|
705
|
+
};
|
|
706
|
+
environment: Record<string, unknown>;
|
|
707
|
+
stats: {
|
|
708
|
+
verbose: boolean;
|
|
709
|
+
builtIns: false | {
|
|
710
|
+
ignore: string[];
|
|
711
|
+
};
|
|
712
|
+
buffer: boolean;
|
|
713
|
+
};
|
|
714
|
+
polyfills: boolean | {
|
|
715
|
+
stream: boolean;
|
|
716
|
+
path: boolean;
|
|
717
|
+
buffer: boolean;
|
|
718
|
+
assert: boolean;
|
|
719
|
+
console: boolean;
|
|
720
|
+
constants: boolean;
|
|
721
|
+
crypto: boolean;
|
|
722
|
+
domain: boolean;
|
|
723
|
+
events: boolean;
|
|
724
|
+
http: boolean;
|
|
725
|
+
https: boolean;
|
|
726
|
+
os: boolean;
|
|
727
|
+
punycode: boolean;
|
|
728
|
+
process: boolean;
|
|
729
|
+
querystring: boolean;
|
|
730
|
+
_stream_duplex: boolean;
|
|
731
|
+
_stream_passthrough: boolean;
|
|
732
|
+
_stream_readable: boolean;
|
|
733
|
+
_stream_transform: boolean;
|
|
734
|
+
_stream_writable: boolean;
|
|
735
|
+
string_decoder: boolean;
|
|
736
|
+
sys: boolean;
|
|
737
|
+
timers: boolean;
|
|
738
|
+
tty: boolean;
|
|
739
|
+
url: boolean;
|
|
740
|
+
util: boolean;
|
|
741
|
+
vm: boolean;
|
|
742
|
+
zlib: boolean;
|
|
743
|
+
};
|
|
744
|
+
typescript: {
|
|
745
|
+
enabled: boolean;
|
|
746
|
+
configFile: string;
|
|
747
|
+
};
|
|
748
|
+
features: {
|
|
749
|
+
images: boolean;
|
|
750
|
+
};
|
|
751
|
+
experimental: {
|
|
752
|
+
wasm: boolean;
|
|
753
|
+
};
|
|
754
|
+
customizeWebpackConfig?: SnapsWebpackCustomizeWebpackConfigFunction | undefined;
|
|
755
|
+
}>;
|
|
854
756
|
export {};
|
|
855
757
|
//# sourceMappingURL=config.d.cts.map
|
package/dist/config.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.cts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.cts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAOnD,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,gBAAgB;AAIrE,OAAO,KAAK,EAAE,SAAS,EAAE,4BAAsB;AAK/C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAE/B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,MAAM,CAAC,EAAE;QACP;;;;;;;;WAQG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;;;WAIG;QACH,QA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