@uni_toolkit/shared 0.0.15 → 0.0.17-alpha.1775970596430

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 CHANGED
@@ -43,7 +43,7 @@ function getOutputJsonPath(filePath) {
43
43
  return import_node_path.default.join(process.env.UNI_OUTPUT_DIR, dir, `${name}.json`);
44
44
  }
45
45
  function isMiniProgram() {
46
- return process.env.UNI_PLATFORM?.startsWith("mp-");
46
+ return !!process.env.UNI_PLATFORM?.startsWith("mp-");
47
47
  }
48
48
  function isString(value) {
49
49
  return typeof value === "string";
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare function getOutputJsonPath(filePath: string): string;
2
- declare function isMiniProgram(): boolean | undefined;
2
+ declare function isMiniProgram(): boolean;
3
3
  declare function isString(value: unknown): value is string;
4
4
  interface VueQuery {
5
5
  vue?: boolean;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare function getOutputJsonPath(filePath: string): string;
2
- declare function isMiniProgram(): boolean | undefined;
2
+ declare function isMiniProgram(): boolean;
3
3
  declare function isString(value: unknown): value is string;
4
4
  interface VueQuery {
5
5
  vue?: boolean;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ function getOutputJsonPath(filePath) {
6
6
  return path.join(process.env.UNI_OUTPUT_DIR, dir, `${name}.json`);
7
7
  }
8
8
  function isMiniProgram() {
9
- return process.env.UNI_PLATFORM?.startsWith("mp-");
9
+ return !!process.env.UNI_PLATFORM?.startsWith("mp-");
10
10
  }
11
11
  function isString(value) {
12
12
  return typeof value === "string";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni_toolkit/shared",
3
- "version": "0.0.15",
3
+ "version": "0.0.17-alpha.1775970596430",
4
4
  "license": "MIT",
5
5
  "author": "chouchouji <1305974212@qq.com>",
6
6
  "type": "module",