@teispace/next-maker 1.4.0 → 1.5.1

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.
@@ -41,6 +41,8 @@ export declare const PROJECT_PATHS: {
41
41
  readonly HTTP_UTILS: "src/lib/utils/http";
42
42
  readonly AXIOS_CLIENT: "src/lib/utils/http/axios-client";
43
43
  readonly FETCH_CLIENT: "src/lib/utils/http/fetch-client";
44
+ readonly AXIOS_CLIENT_FILE: "src/lib/utils/http/axios-client/index.ts";
45
+ readonly FETCH_CLIENT_FILE: "src/lib/utils/http/fetch-client/index.ts";
44
46
  readonly CLIENT_UTILS: "src/lib/utils/http/client-utils.ts";
45
47
  readonly APP_APIS: "src/lib/config/app-apis.ts";
46
48
  readonly STORAGE_SERVICE: "src/services/storage";
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/config/paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFhB,CAAC"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/config/paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFhB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { Ora } from 'ora';
2
2
  export declare const fetchAssets: (tempDir: string, spinner: Ora) => Promise<void>;
3
- export declare const copyHttpClientFiles: (projectPath: string, tempDir: string, clientType: "fetch" | "axios") => Promise<void>;
3
+ export declare const copyHttpClientFiles: (projectPath: string, tempDir: string, clients: ("fetch" | "axios")[], removeClients?: ("fetch" | "axios")[]) => Promise<void>;
4
4
  //# sourceMappingURL=assets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/services/setup/http-client/assets.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,eAAO,MAAM,WAAW,GAAU,SAAS,MAAM,EAAE,SAAS,GAAG,KAAG,OAAO,CAAC,IAAI,CAQ7E,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,YAAY,OAAO,GAAG,OAAO,KAC5B,OAAO,CAAC,IAAI,CAyDd,CAAC"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/services/setup/http-client/assets.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,eAAO,MAAM,WAAW,GAAU,SAAS,MAAM,EAAE,SAAS,GAAG,KAAG,OAAO,CAAC,IAAI,CAQ7E,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE,EAC9B,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE,KACpC,OAAO,CAAC,IAAI,CA6Fd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/services/setup/http-client/index.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,eAAe,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CAsFvE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/services/setup/http-client/index.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,eAAe,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CA4FvE,CAAC"}
@@ -1,6 +1,10 @@
1
- export declare const updateHttpIndex: (projectPath: string, clientType: "fetch" | "axios") => Promise<void>;
2
- export declare const updateHttpTypes: (projectPath: string, clientType: "fetch" | "axios") => Promise<void>;
1
+ export declare const updateHttpIndex: (projectPath: string, clients: ("fetch" | "axios")[]) => Promise<void>;
3
2
  export declare const updateUtilsIndex: (projectPath: string) => Promise<void>;
4
3
  export declare const updateTypesIndex: (projectPath: string) => Promise<void>;
5
4
  export declare const updateConfigIndex: (projectPath: string) => Promise<void>;
5
+ /**
6
+ * Migrate all HTTP client import and usage patterns when replacing one client with another
7
+ * Example: fetch -> axios will replace all fetchClient imports/usages with axiosClient
8
+ */
9
+ export declare const migrateClientUsages: (projectPath: string, fromClient: "fetch" | "axios", toClient: "fetch" | "axios") => Promise<void>;
6
10
  //# sourceMappingURL=injectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"injectors.d.ts","sourceRoot":"","sources":["../../../../../src/services/setup/http-client/injectors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAC1B,aAAa,MAAM,EACnB,YAAY,OAAO,GAAG,OAAO,KAC5B,OAAO,CAAC,IAAI,CAmBd,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,aAAa,MAAM,EACnB,YAAY,OAAO,GAAG,OAAO,KAC5B,OAAO,CAAC,IAAI,CAoBd,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CASxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CAYxE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CASzE,CAAC"}
1
+ {"version":3,"file":"injectors.d.ts","sourceRoot":"","sources":["../../../../../src/services/setup/http-client/injectors.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,GAC1B,aAAa,MAAM,EACnB,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC,EAAE,KAC7B,OAAO,CAAC,IAAI,CAmBd,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CASxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CAYxE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,IAAI,CASzE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,EACnB,YAAY,OAAO,GAAG,OAAO,EAC7B,UAAU,OAAO,GAAG,OAAO,KAC1B,OAAO,CAAC,IAAI,CA2Ed,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teispace/next-maker",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "Create a new Teispace Next.js application with interactive setup.",
5
5
  "keywords": [
6
6
  "nextjs",