@ldsg/utils 0.3.9 → 0.3.17

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
- import { AppData } from "@ldsg/types";
1
+ import { AppData } from '@ldsg/types';
2
2
  export interface ExtendAppDataWithPathParams {
3
3
  appData: AppData;
4
4
  extraAppDataPath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"extend-app-data-with-path.d.ts","sourceRoot":"","sources":["../src/extend-app-data-with-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,KAAK,qBAAqB,GAAG,CAC3B,MAAM,EAAE,2BAA2B,KAChC,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB,eAAO,MAAM,qBAAqB,EAAE,qBAmBnC,CAAC"}
1
+ {"version":3,"file":"extend-app-data-with-path.d.ts","sourceRoot":"","sources":["../src/extend-app-data-with-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAItC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,KAAK,qBAAqB,GAAG,CAAC,MAAM,EAAE,2BAA2B,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEvF,eAAO,MAAM,qBAAqB,EAAE,qBAmBnC,CAAC"}
@@ -17,7 +17,7 @@ const extendAppDataWithPath = async (params) => {
17
17
  }
18
18
  const res = (0, extend_app_data_1.extendAppData)({
19
19
  appData,
20
- extraAppData,
20
+ extraAppData
21
21
  });
22
22
  return res;
23
23
  };
@@ -1,4 +1,4 @@
1
- import { AppData } from "@ldsg/types";
1
+ import { AppData } from '@ldsg/types';
2
2
  export interface ExtendAppDataParams {
3
3
  appData: AppData;
4
4
  extraAppData?: Partial<AppData>;
@@ -5,7 +5,7 @@ const extendAppData = (params) => {
5
5
  const { appData, extraAppData } = params;
6
6
  const res = {
7
7
  ...extraAppData,
8
- ...appData,
8
+ ...appData
9
9
  };
10
10
  return res;
11
11
  };
@@ -1,4 +1,4 @@
1
- import { AppData } from "@ldsg/types";
1
+ import { AppData } from '@ldsg/types';
2
2
  export interface FetchAppDataParams {
3
3
  lgsgAppDataUrl: string;
4
4
  }
@@ -8,7 +8,7 @@ const axios_1 = __importDefault(require("axios"));
8
8
  const fetchAppData = async (params) => {
9
9
  const { lgsgAppDataUrl: url } = params;
10
10
  const axiosRes = await (0, axios_1.default)({
11
- url,
11
+ url
12
12
  });
13
13
  const res = axiosRes.data;
14
14
  return res;
@@ -1,4 +1,4 @@
1
- import { AppData } from "@ldsg/types";
1
+ import { AppData } from '@ldsg/types';
2
2
  interface GenerateByAppDataParams {
3
3
  appData: AppData;
4
4
  outputPath: string;
@@ -10,7 +10,7 @@ const generateByAppData = async (params) => {
10
10
  const { appData, outputPath } = params;
11
11
  const zipAppDataRes = await (0, common_1.zipAppData)({
12
12
  ...appData,
13
- type: "nodebuffer",
13
+ type: 'nodebuffer'
14
14
  });
15
15
  const { archive } = zipAppDataRes;
16
16
  const admZip = new adm_zip_1.default(archive);
@@ -1,5 +1,5 @@
1
- import { AppData } from "@ldsg/types";
2
- import { FetchAppDataParams } from "./fetch-app-data";
1
+ import { AppData } from '@ldsg/types';
2
+ import { FetchAppDataParams } from './fetch-app-data';
3
3
  interface GetAppDataParams extends FetchAppDataParams {
4
4
  extraAppDataPath?: string;
5
5
  }
@@ -8,7 +8,7 @@ const getAppData = async (params) => {
8
8
  const appData = await (0, fetch_app_data_1.fetchAppData)(params);
9
9
  const res = await (0, extend_app_data_with_path_1.extendAppDataWithPath)({
10
10
  appData,
11
- extraAppDataPath,
11
+ extraAppDataPath
12
12
  });
13
13
  return res;
14
14
  };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./extend-app-data";
2
- export * from "./extend-app-data-with-path";
3
- export * from "./fetch-app-data";
4
- export * from "./generate";
5
- export * from "./generate-by-app-data";
6
- export * from "./get-app-data";
1
+ export * from './extend-app-data';
2
+ export * from './extend-app-data-with-path';
3
+ export * from './fetch-app-data';
4
+ export * from './generate';
5
+ export * from './generate-by-app-data';
6
+ export * from './get-app-data';
7
7
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,26 +1,23 @@
1
1
  {
2
2
  "name": "@ldsg/utils",
3
- "version": "0.3.9",
3
+ "version": "0.3.17",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "author": "wanxger",
4
7
  "main": "dist/index.js",
8
+ "types": "dist",
5
9
  "files": [
6
10
  "dist/"
7
11
  ],
8
- "types": "dist",
9
- "author": "wanxger",
10
- "license": "MIT",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "description": "",
15
12
  "dependencies": {
16
13
  "adm-zip": "^0.5.16",
17
14
  "axios": "^1.7.7",
18
15
  "commander": "^12.1.0",
19
16
  "fs-extra": "^11.2.0",
20
17
  "lodash": "^4.17.21",
21
- "@ldsg/common": "0.3.9",
22
- "@ldsg/types": "0.3.9",
23
- "@ldsg/create-app": "0.3.9"
18
+ "@ldsg/common": "0.3.17",
19
+ "@ldsg/create-app": "0.3.17",
20
+ "@ldsg/types": "0.3.17"
24
21
  },
25
22
  "devDependencies": {
26
23
  "@types/adm-zip": "^0.5.6",
@@ -29,14 +26,18 @@
29
26
  "@types/node": "^20.13.0",
30
27
  "@types/supertest": "^6.0.0",
31
28
  "dotenv": "^16.4.5",
29
+ "jest": "^29.5.0",
32
30
  "supertest": "^6.3.4",
33
31
  "ts-loader": "^9.5.1",
34
32
  "ts-node": "^10.9.2",
35
33
  "tslib": "^2.6.2",
36
- "typescript": "^5.5.2",
34
+ "typescript": "^5.3.3",
37
35
  "webpack": "^5.97.1",
38
36
  "webpack-cli": "^5.1.4"
39
37
  },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
40
41
  "scripts": {
41
42
  "build": "tsc --project tsconfig.build.json",
42
43
  "clean": "rm -rf dist"