@expo/config 8.4.0 → 8.5.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/build/Errors.js +2 -5
- package/build/Errors.js.map +1 -1
- package/package.json +11 -9
package/build/Errors.js
CHANGED
|
@@ -4,19 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ConfigError = void 0;
|
|
7
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
7
|
/**
|
|
11
8
|
* Based on `JsonFileError` from `@expo/json-file`
|
|
12
9
|
*/
|
|
13
10
|
class ConfigError extends Error {
|
|
11
|
+
name = 'ConfigError';
|
|
12
|
+
isConfigError = true;
|
|
14
13
|
constructor(message, code, cause) {
|
|
15
14
|
super(cause ? `${message}\n└─ Cause: ${cause.name}: ${cause.message}` : message);
|
|
16
15
|
this.code = code;
|
|
17
16
|
this.cause = cause;
|
|
18
|
-
_defineProperty(this, "name", 'ConfigError');
|
|
19
|
-
_defineProperty(this, "isConfigError", true);
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
19
|
exports.ConfigError = ConfigError;
|
package/build/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","names":["ConfigError","Error","
|
|
1
|
+
{"version":3,"file":"Errors.js","names":["ConfigError","Error","name","isConfigError","constructor","message","code","cause","exports"],"sources":["../src/Errors.ts"],"sourcesContent":["import { ConfigErrorCode } from './Config.types';\n\n/**\n * Based on `JsonFileError` from `@expo/json-file`\n */\nexport class ConfigError extends Error {\n readonly name = 'ConfigError';\n readonly isConfigError = true;\n\n constructor(\n message: string,\n public code: ConfigErrorCode,\n public cause?: Error\n ) {\n super(cause ? `${message}\\n└─ Cause: ${cause.name}: ${cause.message}` : message);\n }\n}\n"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,MAAMA,WAAW,SAASC,KAAK,CAAC;EAC5BC,IAAI,GAAG,aAAa;EACpBC,aAAa,GAAG,IAAI;EAE7BC,WAAWA,CACTC,OAAe,EACRC,IAAqB,EACrBC,KAAa,EACpB;IACA,KAAK,CAACA,KAAK,GAAI,GAAEF,OAAQ,eAAcE,KAAK,CAACL,IAAK,KAAIK,KAAK,CAACF,OAAQ,EAAC,GAAGA,OAAO,CAAC;IAAC,KAH1EC,IAAqB,GAArBA,IAAqB;IAAA,KACrBC,KAAa,GAAbA,KAAa;EAGtB;AACF;AAACC,OAAA,CAAAR,WAAA,GAAAA,WAAA"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "A library for interacting with the app.json",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"watch": "tsc --watch --preserveWatchOutput",
|
|
8
7
|
"build": "tsc --emitDeclarationOnly && babel src --out-dir build --extensions \".ts\" --source-maps --ignore \"src/**/__mocks__/*\",\"src/**/__tests__/*\"",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
8
|
+
"clean": "expo-module clean",
|
|
9
|
+
"lint": "expo-module lint",
|
|
10
|
+
"prepare": "expo-module clean && yarn run build",
|
|
11
|
+
"prepublishOnly": "expo-module prepublishOnly",
|
|
12
|
+
"test": "expo-module test",
|
|
13
|
+
"typecheck": "expo-module typecheck"
|
|
13
14
|
},
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
],
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@babel/code-frame": "~7.10.4",
|
|
36
|
-
"@expo/config-plugins": "~7.
|
|
37
|
+
"@expo/config-plugins": "~7.8.0",
|
|
37
38
|
"@expo/config-types": "^50.0.0-alpha.1",
|
|
38
39
|
"@expo/json-file": "^8.2.37",
|
|
39
40
|
"getenv": "^1.0.0",
|
|
@@ -45,10 +46,11 @@
|
|
|
45
46
|
"sucrase": "^3.20.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@types/require-from-string": "^1.2.1"
|
|
49
|
+
"@types/require-from-string": "^1.2.1",
|
|
50
|
+
"expo-module-scripts": "^3.3.0"
|
|
49
51
|
},
|
|
50
52
|
"publishConfig": {
|
|
51
53
|
"access": "public"
|
|
52
54
|
},
|
|
53
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "2763e9cc6f2317b40da73382fe2595f8deebff46"
|
|
54
56
|
}
|