soda-nodejs 0.6.1 → 0.6.3

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,8 +1,8 @@
1
- export * from "./utils/compress";
2
- export * from "./utils/copy";
3
- export * from "./utils/execAsync";
4
- export * from "./utils/saveFile";
5
- export * from "./utils/saveResponse";
6
- export * from "./utils/spawnAsync";
7
- export * from "./utils/unzip";
8
- export * from "./utils/zip";
1
+ export type { CompressionParams } from "./utils/compress";
2
+ export type { CopyOptions } from "./utils/copy";
3
+ export type { IconvDecodeOptions } from "./utils/execAsync";
4
+ export type { SaveFileOptions } from "./utils/saveFile";
5
+ export { getDefaultOptions, setDefaultOptions, spawnAsync } from "./utils/spawnAsync";
6
+ export type { Options, PromiseWithChildProcess } from "./utils/spawnAsync";
7
+ export type { UnzipOptions } from "./utils/unzip";
8
+ export type { ZipOptions } from "./utils/zip";
package/dist/cjs/index.js CHANGED
@@ -2,6 +2,10 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
5
9
  var __copyProps = (to, from, except, desc) => {
6
10
  if (from && typeof from === "object" || typeof from === "function") {
7
11
  for (let key of __getOwnPropNames(from))
@@ -10,29 +14,21 @@ var __copyProps = (to, from, except, desc) => {
10
14
  }
11
15
  return to;
12
16
  };
13
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
18
 
16
19
  // src/index.ts
17
20
  var src_exports = {};
21
+ __export(src_exports, {
22
+ getDefaultOptions: () => import_spawnAsync.getDefaultOptions,
23
+ setDefaultOptions: () => import_spawnAsync.setDefaultOptions,
24
+ spawnAsync: () => import_spawnAsync.spawnAsync
25
+ });
18
26
  module.exports = __toCommonJS(src_exports);
19
- __reExport(src_exports, require("./utils/compress"), module.exports);
20
- __reExport(src_exports, require("./utils/copy"), module.exports);
21
- __reExport(src_exports, require("./utils/execAsync"), module.exports);
22
- __reExport(src_exports, require("./utils/saveFile"), module.exports);
23
- __reExport(src_exports, require("./utils/saveResponse"), module.exports);
24
- __reExport(src_exports, require("./utils/spawnAsync"), module.exports);
25
- __reExport(src_exports, require("./utils/unzip"), module.exports);
26
- __reExport(src_exports, require("./utils/zip"), module.exports);
27
+ var import_spawnAsync = require("./utils/spawnAsync");
27
28
  // Annotate the CommonJS export names for ESM import in node:
28
29
  0 && (module.exports = {
29
- ...require("./utils/compress"),
30
- ...require("./utils/copy"),
31
- ...require("./utils/execAsync"),
32
- ...require("./utils/saveFile"),
33
- ...require("./utils/saveResponse"),
34
- ...require("./utils/spawnAsync"),
35
- ...require("./utils/unzip"),
36
- ...require("./utils/zip")
30
+ getDefaultOptions,
31
+ setDefaultOptions,
32
+ spawnAsync
37
33
  });
38
34
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from \"@/utils/compress\"\nexport * from \"@/utils/copy\"\nexport * from \"@/utils/execAsync\"\nexport * from \"@/utils/saveFile\"\nexport * from \"@/utils/saveResponse\"\nexport * from \"@/utils/spawnAsync\"\nexport * from \"@/utils/unzip\"\nexport * from \"@/utils/zip\"\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,6BAAd;AACA,wBAAc,yBADd;AAEA,wBAAc,8BAFd;AAGA,wBAAc,6BAHd;AAIA,wBAAc,iCAJd;AAKA,wBAAc,+BALd;AAMA,wBAAc,0BANd;AAOA,wBAAc,wBAPd;",
4
+ "sourcesContent": ["export type { CompressionParams } from \"@/utils/compress\"\nexport type { CopyOptions } from \"@/utils/copy\"\nexport type { IconvDecodeOptions } from \"@/utils/execAsync\"\nexport type { SaveFileOptions } from \"@/utils/saveFile\"\nexport { getDefaultOptions, setDefaultOptions, spawnAsync } from \"@/utils/spawnAsync\"\nexport type { Options, PromiseWithChildProcess } from \"@/utils/spawnAsync\"\nexport type { UnzipOptions } from \"@/utils/unzip\"\nexport type { ZipOptions } from \"@/utils/zip\"\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAAiE;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
- export * from "./utils/compress";
2
- export * from "./utils/copy";
3
- export * from "./utils/execAsync";
4
- export * from "./utils/saveFile";
5
- export * from "./utils/saveResponse";
6
- export * from "./utils/spawnAsync";
7
- export * from "./utils/unzip";
8
- export * from "./utils/zip";
1
+ export type { CompressionParams } from "./utils/compress";
2
+ export type { CopyOptions } from "./utils/copy";
3
+ export type { IconvDecodeOptions } from "./utils/execAsync";
4
+ export type { SaveFileOptions } from "./utils/saveFile";
5
+ export { getDefaultOptions, setDefaultOptions, spawnAsync } from "./utils/spawnAsync";
6
+ export type { Options, PromiseWithChildProcess } from "./utils/spawnAsync";
7
+ export type { UnzipOptions } from "./utils/unzip";
8
+ export type { ZipOptions } from "./utils/zip";
package/dist/esm/index.js CHANGED
@@ -1,9 +1,2 @@
1
- export * from "./utils/compress";
2
- export * from "./utils/copy";
3
- export * from "./utils/execAsync";
4
- export * from "./utils/saveFile";
5
- export * from "./utils/saveResponse";
6
- export * from "./utils/spawnAsync";
7
- export * from "./utils/unzip";
8
- export * from "./utils/zip";
1
+ export { getDefaultOptions, setDefaultOptions, spawnAsync } from "./utils/spawnAsync";
9
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"@/utils/compress\"\nexport * from \"@/utils/copy\"\nexport * from \"@/utils/execAsync\"\nexport * from \"@/utils/saveFile\"\nexport * from \"@/utils/saveResponse\"\nexport * from \"@/utils/spawnAsync\"\nexport * from \"@/utils/unzip\"\nexport * from \"@/utils/zip\"\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"names":["getDefaultOptions","setDefaultOptions","spawnAsync"],"sources":["../../src/index.ts"],"sourcesContent":["export type { CompressionParams } from \"@/utils/compress\"\nexport type { CopyOptions } from \"@/utils/copy\"\nexport type { IconvDecodeOptions } from \"@/utils/execAsync\"\nexport type { SaveFileOptions } from \"@/utils/saveFile\"\nexport { getDefaultOptions, setDefaultOptions, spawnAsync } from \"@/utils/spawnAsync\"\nexport type { Options, PromiseWithChildProcess } from \"@/utils/spawnAsync\"\nexport type { UnzipOptions } from \"@/utils/unzip\"\nexport type { ZipOptions } from \"@/utils/zip\"\n"],"mappings":"AAIA,SAASA,iBAAiB,EAAEC,iBAAiB,EAAEC,UAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soda-nodejs",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/index.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "@/utils/compress"
2
- export * from "@/utils/copy"
3
- export * from "@/utils/execAsync"
4
- export * from "@/utils/saveFile"
5
- export * from "@/utils/saveResponse"
6
- export * from "@/utils/spawnAsync"
7
- export * from "@/utils/unzip"
8
- export * from "@/utils/zip"
1
+ export type { CompressionParams } from "@/utils/compress"
2
+ export type { CopyOptions } from "@/utils/copy"
3
+ export type { IconvDecodeOptions } from "@/utils/execAsync"
4
+ export type { SaveFileOptions } from "@/utils/saveFile"
5
+ export { getDefaultOptions, setDefaultOptions, spawnAsync } from "@/utils/spawnAsync"
6
+ export type { Options, PromiseWithChildProcess } from "@/utils/spawnAsync"
7
+ export type { UnzipOptions } from "@/utils/unzip"
8
+ export type { ZipOptions } from "@/utils/zip"