@hot-updater/plugin-core 0.16.6 → 0.17.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.
@@ -1,4 +1,4 @@
1
- export type BuildType = "bare" | "rnef";
1
+ export type BuildType = "bare" | "rnef" | "expo";
2
2
  export type ImportInfo = {
3
3
  pkg: string;
4
4
  named?: string[];
@@ -10,7 +10,7 @@ export type ProviderConfig = {
10
10
  configString: string;
11
11
  };
12
12
  export interface IConfigBuilder {
13
- /** Sets the build type ('bare' or 'rnef') and adds necessary build imports. */
13
+ /** Sets the build type ('bare' or 'rnef' or 'expo') and adds necessary build imports. */
14
14
  setBuildType(buildType: BuildType): this;
15
15
  /** Sets the storage configuration and adds its required imports. */
16
16
  setStorage(storageConfig: ProviderConfig): this;
package/dist/index.cjs CHANGED
@@ -83794,7 +83794,11 @@ var __webpack_exports__ = {};
83794
83794
  }
83795
83795
  const external_node_process_namespaceObject = require("node:process");
83796
83796
  function ansiRegex({ onlyFirst = false } = {}) {
83797
- const pattern = "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))";
83797
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
83798
+ const pattern = [
83799
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
83800
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
83801
+ ].join('|');
83798
83802
  return new RegExp(pattern, onlyFirst ? void 0 : 'g');
83799
83803
  }
83800
83804
  const regex = ansiRegex();
@@ -85630,6 +85634,8 @@ var __webpack_exports__ = {};
85630
85634
  return "bare({ enableHermes: true })";
85631
85635
  case "rnef":
85632
85636
  return "rnef()";
85637
+ case "expo":
85638
+ return "expo()";
85633
85639
  default:
85634
85640
  throw new Error(`Invalid build type: ${this.buildType}`);
85635
85641
  }
package/dist/index.js CHANGED
@@ -83300,7 +83300,11 @@ function createDatabasePlugin(name, abstractPlugin, hooks) {
83300
83300
  });
83301
83301
  }
83302
83302
  function ansiRegex({ onlyFirst = false } = {}) {
83303
- const pattern = "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))";
83303
+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
83304
+ const pattern = [
83305
+ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
83306
+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))'
83307
+ ].join('|');
83304
83308
  return new RegExp(pattern, onlyFirst ? void 0 : 'g');
83305
83309
  }
83306
83310
  const regex = ansiRegex();
@@ -85133,6 +85137,8 @@ class ConfigBuilder {
85133
85137
  return "bare({ enableHermes: true })";
85134
85138
  case "rnef":
85135
85139
  return "rnef()";
85140
+ case "expo":
85141
+ return "expo()";
85136
85142
  default:
85137
85143
  throw new Error(`Invalid build type: ${this.buildType}`);
85138
85144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/plugin-core",
3
- "version": "0.16.6",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -41,7 +41,7 @@
41
41
  "cosmiconfig": "9.0.0",
42
42
  "cosmiconfig-typescript-loader": "5.0.0",
43
43
  "ts-morph": "25.0.1",
44
- "@hot-updater/core": "0.16.6"
44
+ "@hot-updater/core": "0.17.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/core": "7.26.0",