@metamask/snaps-cli 0.19.0 → 0.19.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.
@@ -0,0 +1,2 @@
1
+ import { SnapConfig } from "./snap-config";
2
+ export declare function isSnapConfig(obj: any, _argumentName?: string): obj is SnapConfig;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSnapConfig = void 0;
4
+ function isSnapConfig(obj, _argumentName) {
5
+ return ((obj !== null &&
6
+ typeof obj === "object" ||
7
+ typeof obj === "function") &&
8
+ (typeof obj.cliOptions === "undefined" ||
9
+ (obj.cliOptions !== null &&
10
+ typeof obj.cliOptions === "object" ||
11
+ typeof obj.cliOptions === "function") &&
12
+ Object.entries(obj.cliOptions)
13
+ .every(([key, _value]) => (typeof key === "string"))) &&
14
+ (typeof obj.bundlerCustomizer === "undefined" ||
15
+ typeof obj.bundlerCustomizer === "function"));
16
+ }
17
+ exports.isSnapConfig = isSnapConfig;
18
+ //# sourceMappingURL=snap-config.__GENERATED__.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snap-config.__GENERATED__.js","sourceRoot":"","sources":["../../src/utils/snap-config.__GENERATED__.ts"],"names":[],"mappings":";;;AAMA,SAAgB,YAAY,CAAC,GAAQ,EAAE,aAAsB;IACzD,OAAO,CACH,CAAC,GAAG,KAAK,IAAI;QACT,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAO,GAAG,KAAK,UAAU,CAAC;QAC9B,CAAC,OAAO,GAAG,CAAC,UAAU,KAAK,WAAW;YAClC,CAAC,GAAG,CAAC,UAAU,KAAK,IAAI;gBACpB,OAAO,GAAG,CAAC,UAAU,KAAK,QAAQ;gBAClC,OAAO,GAAG,CAAC,UAAU,KAAK,UAAU,CAAC;gBACzC,MAAM,CAAC,OAAO,CAAM,GAAG,CAAC,UAAU,CAAC;qBAC9B,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC;QAC7D,CAAC,OAAO,GAAG,CAAC,iBAAiB,KAAK,WAAW;YACzC,OAAO,GAAG,CAAC,iBAAiB,KAAK,UAAU,CAAC,CACnD,CAAA;AACL,CAAC;AAdD,oCAcC","sourcesContent":["/*\n * Generated type guards for \"snap-config.ts\".\n * WARNING: Do not manually change this file.\n */\nimport { SnapConfig } from \"./snap-config\";\n\nexport function isSnapConfig(obj: any, _argumentName?: string): obj is SnapConfig {\n return (\n (obj !== null &&\n typeof obj === \"object\" ||\n typeof obj === \"function\") &&\n (typeof obj.cliOptions === \"undefined\" ||\n (obj.cliOptions !== null &&\n typeof obj.cliOptions === \"object\" ||\n typeof obj.cliOptions === \"function\") &&\n Object.entries<any>(obj.cliOptions)\n .every(([key, _value]) => (typeof key === \"string\"))) &&\n (typeof obj.bundlerCustomizer === \"undefined\" ||\n typeof obj.bundlerCustomizer === \"function\")\n )\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/snaps-cli",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "A CLI for developing MetaMask Snaps.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,8 +46,8 @@
46
46
  "@babel/plugin-transform-runtime": "^7.16.7",
47
47
  "@babel/preset-env": "^7.16.7",
48
48
  "@babel/preset-typescript": "^7.16.7",
49
- "@metamask/snap-utils": "^0.19.0",
50
- "@metamask/snaps-browserify-plugin": "^0.19.0",
49
+ "@metamask/snap-utils": "^0.19.1",
50
+ "@metamask/snaps-browserify-plugin": "^0.19.1",
51
51
  "@metamask/utils": "^2.0.0",
52
52
  "babelify": "^10.0.0",
53
53
  "browserify": "^17.0.0",