@hot-updater/plugin-core 0.15.0 → 0.16.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/dist/index.cjs +24 -35
- package/dist/index.js +24 -35
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -83323,45 +83323,34 @@ var __webpack_exports__ = {};
|
|
|
83323
83323
|
throw new Error("database plugin is required");
|
|
83324
83324
|
}
|
|
83325
83325
|
};
|
|
83326
|
-
const
|
|
83327
|
-
|
|
83328
|
-
|
|
83329
|
-
|
|
83330
|
-
|
|
83331
|
-
|
|
83332
|
-
|
|
83333
|
-
|
|
83334
|
-
|
|
83335
|
-
|
|
83336
|
-
|
|
83337
|
-
|
|
83338
|
-
|
|
83339
|
-
|
|
83340
|
-
|
|
83341
|
-
|
|
83342
|
-
|
|
83326
|
+
const configOptions = {
|
|
83327
|
+
stopDir: getCwd(),
|
|
83328
|
+
searchPlaces: [
|
|
83329
|
+
"hot-updater.config.js",
|
|
83330
|
+
"hot-updater.config.cjs",
|
|
83331
|
+
"hot-updater.config.ts",
|
|
83332
|
+
"hot-updater.config.cts",
|
|
83333
|
+
"hot-updater.config.cjs",
|
|
83334
|
+
"hot-updater.config.mts"
|
|
83335
|
+
],
|
|
83336
|
+
ignoreEmptySearchPlaces: false,
|
|
83337
|
+
loaders: {
|
|
83338
|
+
".ts": (0, external_cosmiconfig_typescript_loader_namespaceObject.TypeScriptLoader)(),
|
|
83339
|
+
".mts": (0, external_cosmiconfig_typescript_loader_namespaceObject.TypeScriptLoader)(),
|
|
83340
|
+
".cts": (0, external_cosmiconfig_typescript_loader_namespaceObject.TypeScriptLoader)()
|
|
83341
|
+
}
|
|
83342
|
+
};
|
|
83343
|
+
const ensureConfig = (result, options)=>{
|
|
83343
83344
|
const config = "function" == typeof result?.config ? result.config(options) : result?.config;
|
|
83344
83345
|
return merge(defaultConfig, config ?? {});
|
|
83345
83346
|
};
|
|
83347
|
+
const loadConfig = async (options)=>{
|
|
83348
|
+
const result = await (0, external_cosmiconfig_namespaceObject.cosmiconfig)("hot-updater", configOptions).search();
|
|
83349
|
+
return ensureConfig(result, options);
|
|
83350
|
+
};
|
|
83346
83351
|
const loadConfigSync = (options)=>{
|
|
83347
|
-
const result = (0, external_cosmiconfig_namespaceObject.cosmiconfigSync)("hot-updater",
|
|
83348
|
-
|
|
83349
|
-
searchPlaces: [
|
|
83350
|
-
"hot-updater.config.js",
|
|
83351
|
-
"hot-updater.config.cjs",
|
|
83352
|
-
"hot-updater.config.ts",
|
|
83353
|
-
"hot-updater.config.cts",
|
|
83354
|
-
"hot-updater.config.cjs"
|
|
83355
|
-
],
|
|
83356
|
-
ignoreEmptySearchPlaces: false,
|
|
83357
|
-
loaders: {
|
|
83358
|
-
".ts": (0, external_cosmiconfig_typescript_loader_namespaceObject.TypeScriptLoader)(),
|
|
83359
|
-
".mts": (0, external_cosmiconfig_typescript_loader_namespaceObject.TypeScriptLoader)(),
|
|
83360
|
-
".cts": (0, external_cosmiconfig_typescript_loader_namespaceObject.TypeScriptLoader)()
|
|
83361
|
-
}
|
|
83362
|
-
}).search();
|
|
83363
|
-
const config = "function" == typeof result?.config ? result.config(options) : result?.config;
|
|
83364
|
-
return merge(defaultConfig, config ?? {});
|
|
83352
|
+
const result = (0, external_cosmiconfig_namespaceObject.cosmiconfigSync)("hot-updater", configOptions).search();
|
|
83353
|
+
return ensureConfig(result, options);
|
|
83365
83354
|
};
|
|
83366
83355
|
var external_path_ = __webpack_require__("path");
|
|
83367
83356
|
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_);
|
package/dist/index.js
CHANGED
|
@@ -82843,45 +82843,34 @@ const defaultConfig = {
|
|
|
82843
82843
|
throw new Error("database plugin is required");
|
|
82844
82844
|
}
|
|
82845
82845
|
};
|
|
82846
|
-
const
|
|
82847
|
-
|
|
82848
|
-
|
|
82849
|
-
|
|
82850
|
-
|
|
82851
|
-
|
|
82852
|
-
|
|
82853
|
-
|
|
82854
|
-
|
|
82855
|
-
|
|
82856
|
-
|
|
82857
|
-
|
|
82858
|
-
|
|
82859
|
-
|
|
82860
|
-
|
|
82861
|
-
|
|
82862
|
-
|
|
82846
|
+
const configOptions = {
|
|
82847
|
+
stopDir: getCwd(),
|
|
82848
|
+
searchPlaces: [
|
|
82849
|
+
"hot-updater.config.js",
|
|
82850
|
+
"hot-updater.config.cjs",
|
|
82851
|
+
"hot-updater.config.ts",
|
|
82852
|
+
"hot-updater.config.cts",
|
|
82853
|
+
"hot-updater.config.cjs",
|
|
82854
|
+
"hot-updater.config.mts"
|
|
82855
|
+
],
|
|
82856
|
+
ignoreEmptySearchPlaces: false,
|
|
82857
|
+
loaders: {
|
|
82858
|
+
".ts": (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig_typescript_loader_05c5f2fe__.TypeScriptLoader)(),
|
|
82859
|
+
".mts": (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig_typescript_loader_05c5f2fe__.TypeScriptLoader)(),
|
|
82860
|
+
".cts": (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig_typescript_loader_05c5f2fe__.TypeScriptLoader)()
|
|
82861
|
+
}
|
|
82862
|
+
};
|
|
82863
|
+
const ensureConfig = (result, options)=>{
|
|
82863
82864
|
const config = "function" == typeof result?.config ? result.config(options) : result?.config;
|
|
82864
82865
|
return merge(defaultConfig, config ?? {});
|
|
82865
82866
|
};
|
|
82867
|
+
const loadConfig = async (options)=>{
|
|
82868
|
+
const result = await (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig__.cosmiconfig)("hot-updater", configOptions).search();
|
|
82869
|
+
return ensureConfig(result, options);
|
|
82870
|
+
};
|
|
82866
82871
|
const loadConfigSync = (options)=>{
|
|
82867
|
-
const result = (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig__.cosmiconfigSync)("hot-updater",
|
|
82868
|
-
|
|
82869
|
-
searchPlaces: [
|
|
82870
|
-
"hot-updater.config.js",
|
|
82871
|
-
"hot-updater.config.cjs",
|
|
82872
|
-
"hot-updater.config.ts",
|
|
82873
|
-
"hot-updater.config.cts",
|
|
82874
|
-
"hot-updater.config.cjs"
|
|
82875
|
-
],
|
|
82876
|
-
ignoreEmptySearchPlaces: false,
|
|
82877
|
-
loaders: {
|
|
82878
|
-
".ts": (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig_typescript_loader_05c5f2fe__.TypeScriptLoader)(),
|
|
82879
|
-
".mts": (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig_typescript_loader_05c5f2fe__.TypeScriptLoader)(),
|
|
82880
|
-
".cts": (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig_typescript_loader_05c5f2fe__.TypeScriptLoader)()
|
|
82881
|
-
}
|
|
82882
|
-
}).search();
|
|
82883
|
-
const config = "function" == typeof result?.config ? result.config(options) : result?.config;
|
|
82884
|
-
return merge(defaultConfig, config ?? {});
|
|
82872
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE_cosmiconfig__.cosmiconfigSync)("hot-updater", configOptions).search();
|
|
82873
|
+
return ensureConfig(result, options);
|
|
82885
82874
|
};
|
|
82886
82875
|
var external_path_ = __webpack_require__("path");
|
|
82887
82876
|
var promises_ = __webpack_require__("fs/promises");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@hot-updater/core": "0.
|
|
41
|
+
"@hot-updater/core": "0.16.0",
|
|
42
42
|
"cosmiconfig": "9.0.0",
|
|
43
43
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
44
44
|
"ts-morph": "25.0.1"
|