create-zuplo-api 1.4.0 → 1.7.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.
package/dist/cli.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1edb5b86-ec24-5ea9-b706-204c1d36fe4a")}catch(e){}}();
|
|
1
3
|
import * as dotenv from "dotenv";
|
|
2
4
|
dotenv.config();
|
|
3
5
|
import * as Sentry from "@sentry/node";
|
|
@@ -47,4 +49,5 @@ else {
|
|
|
47
49
|
|
|
48
50
|
Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`);
|
|
49
51
|
}
|
|
50
|
-
//# sourceMappingURL=cli.js.map
|
|
52
|
+
//# sourceMappingURL=cli.js.map
|
|
53
|
+
//# debugId=1edb5b86-ec24-5ea9-b706-204c1d36fe4a
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e0b93e4a-c44e-509d-945b-f6c39a738828")}catch(e){}}();
|
|
1
3
|
import { defaultIntegrations } from "@sentry/node";
|
|
2
4
|
import { PostHog } from "posthog-node";
|
|
3
5
|
import { POST_HOG_CAPTURE_KEY, ZUPLO_USER_ID_ARGV_KEY } from "../constants.js";
|
|
@@ -51,4 +53,5 @@ export async function captureEvent({ argv, event, properties, groups, sendFeatur
|
|
|
51
53
|
export async function shutdownAnalytics() {
|
|
52
54
|
return _postHog?.shutdownAsync();
|
|
53
55
|
}
|
|
54
|
-
//# sourceMappingURL=lib.js.map
|
|
56
|
+
//# sourceMappingURL=lib.js.map
|
|
57
|
+
//# debugId=e0b93e4a-c44e-509d-945b-f6c39a738828
|
package/dist/common/constants.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="58911fa6-e140-577b-abdc-d8fa357b4889")}catch(e){}}();
|
|
1
3
|
export const ZUPLO_USER_ID_ARGV_KEY = "zuplo-user-id";
|
|
2
4
|
export const SENTRY_DSN = "https://e98d81e78b23b65fa607473823a9957a@o1036703.ingest.sentry.io/4505953760313344";
|
|
3
5
|
export const MAX_WAIT_PENDING_TIME_MS = 1000;
|
|
4
6
|
export const POST_HOG_CAPTURE_KEY = "phc_LDSwSTOvIjiDDZql2g54Q7xEXoQ0EN9RMYb3STbdz1V";
|
|
5
|
-
//# sourceMappingURL=constants.js.map
|
|
7
|
+
//# sourceMappingURL=constants.js.map
|
|
8
|
+
//# debugId=58911fa6-e140-577b-abdc-d8fa357b4889
|
package/dist/common/logger.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="933da865-f680-55cc-a710-065ace7ed925")}catch(e){}}();
|
|
1
3
|
import * as Pino from "pino";
|
|
2
4
|
export const logger = Pino.pino({
|
|
3
5
|
level: process.env.LOG_LEVEL || "info",
|
|
@@ -11,4 +13,5 @@ export const logger = Pino.pino({
|
|
|
11
13
|
],
|
|
12
14
|
},
|
|
13
15
|
});
|
|
14
|
-
//# sourceMappingURL=logger.js.map
|
|
16
|
+
//# sourceMappingURL=logger.js.map
|
|
17
|
+
//# debugId=933da865-f680-55cc-a710-065ace7ed925
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9e0055eb-6035-5efb-8ac1-391c4bff8a89")}catch(e){}}();
|
|
1
3
|
import { execSync } from "node:child_process";
|
|
2
4
|
import { createHash } from "node:crypto";
|
|
3
5
|
const win32RegBinPath = {
|
|
@@ -62,4 +64,5 @@ export function machineId() {
|
|
|
62
64
|
return "e16fc483-5593-4d71-b485-a6533693da9b";
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
//# sourceMappingURL=lib.js.map
|
|
67
|
+
//# sourceMappingURL=lib.js.map
|
|
68
|
+
//# debugId=9e0055eb-6035-5efb-8ac1-391c4bff8a89
|
package/dist/common/output.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c9f754b6-4a30-5079-ac77-596791509251")}catch(e){}}();
|
|
1
3
|
import * as Sentry from "@sentry/node";
|
|
2
4
|
import chalk from "chalk";
|
|
3
5
|
import { MAX_WAIT_PENDING_TIME_MS } from "./constants.js";
|
|
@@ -48,4 +50,5 @@ export function textOrJson(text) {
|
|
|
48
50
|
return text;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
|
-
//# sourceMappingURL=output.js.map
|
|
53
|
+
//# sourceMappingURL=output.js.map
|
|
54
|
+
//# debugId=c9f754b6-4a30-5079-ac77-596791509251
|
package/dist/create/handler.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f6fbd211-5c88-5e06-9a36-7482f16ce2ac")}catch(e){}}();
|
|
1
3
|
import input from "@inquirer/input";
|
|
2
4
|
import { printCriticalFailureToConsoleAndExit, printDiagnosticsToConsole, printResultToConsole, } from "../common/output.js";
|
|
3
5
|
import { logger } from "../common/logger.js";
|
|
@@ -8,7 +10,7 @@ export async function create() {
|
|
|
8
10
|
message: "What do you want to name your project?",
|
|
9
11
|
});
|
|
10
12
|
if (name) {
|
|
11
|
-
const core = await import("@zuplo/core");
|
|
13
|
+
const core = await import("@zuplo/core/create");
|
|
12
14
|
try {
|
|
13
15
|
const rootDirectory = process.cwd();
|
|
14
16
|
printDiagnosticsToConsole("");
|
|
@@ -33,4 +35,5 @@ export async function create() {
|
|
|
33
35
|
printCriticalFailureToConsoleAndExit("Please enter a name for your project");
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
//# sourceMappingURL=handler.js.map
|
|
38
|
+
//# sourceMappingURL=handler.js.map
|
|
39
|
+
//# debugId=f6fbd211-5c88-5e06-9a36-7482f16ce2ac
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-zuplo-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "https://github.com/zuplo/create-zuplo-api",
|
|
6
6
|
"description": "The official way to create a new Zuplo API Gateway",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"license": "See LICENSE in LICENSE.txt",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc --build",
|
|
11
|
+
"clean": "git clean -Xfde !.env",
|
|
11
12
|
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org zuplo --project create-zuplo-api ./dist"
|
|
12
13
|
},
|
|
13
14
|
"engines": {
|
|
@@ -43,19 +44,13 @@
|
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@inquirer/prompts": "^3.1.2",
|
|
45
46
|
"@sentry/node": "^7.72.0",
|
|
46
|
-
"@
|
|
47
|
-
"@zuplo/core": "^5.1327.0",
|
|
47
|
+
"@zuplo/core": "^5.1639.0",
|
|
48
48
|
"@zuplo/pino-pretty-configurations": "^1.5.0",
|
|
49
|
-
"@zuplo/runtime": "^5.1327.0",
|
|
50
49
|
"chalk": "^5.3.0",
|
|
51
50
|
"dotenv": "^16.3.1",
|
|
52
|
-
"esbuild": "^0.19.3",
|
|
53
|
-
"jsonc-parser": "^3.2.0",
|
|
54
51
|
"pino": "^8.15.1",
|
|
55
52
|
"pino-pretty": "^10.2.0",
|
|
56
|
-
"posthog-node": "^3.
|
|
57
|
-
"prettier": "^3.0.3",
|
|
58
|
-
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
53
|
+
"posthog-node": "^3.2.0",
|
|
59
54
|
"semver": "^7.5.4"
|
|
60
55
|
}
|
|
61
56
|
}
|