create-zuplo-api 1.1.0 → 1.6.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
@@ -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
@@ -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
@@ -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
@@ -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,13 +1,14 @@
1
1
  {
2
2
  "name": "create-zuplo-api",
3
- "version": "1.1.0",
3
+ "version": "1.6.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",
7
7
  "author": "Zuplo, Inc.",
8
8
  "license": "See LICENSE in LICENSE.txt",
9
9
  "scripts": {
10
- "build": "tsc --build"
10
+ "build": "tsc --build",
11
+ "sentry:sourcemaps": "sentry-cli sourcemaps inject --org zuplo --project create-zuplo-api ./dist"
11
12
  },
12
13
  "engines": {
13
14
  "node": ">=18.0.0"
@@ -24,6 +25,7 @@
24
25
  ]
25
26
  },
26
27
  "devDependencies": {
28
+ "@sentry/cli": "^2.21.1",
27
29
  "@types/node": "^18.5.3",
28
30
  "@types/semver": "^7.5.3",
29
31
  "@typescript-eslint/eslint-plugin": "^6.7.3",
@@ -41,18 +43,13 @@
41
43
  "dependencies": {
42
44
  "@inquirer/prompts": "^3.1.2",
43
45
  "@sentry/node": "^7.72.0",
44
- "@swc/core": "^1.3.90",
45
- "@zuplo/core": "^5.1327.0",
46
+ "@zuplo/core": "^5.1331.0",
46
47
  "@zuplo/pino-pretty-configurations": "^1.5.0",
47
- "@zuplo/runtime": "^5.1327.0",
48
48
  "chalk": "^5.3.0",
49
49
  "dotenv": "^16.3.1",
50
- "esbuild": "^0.19.3",
51
- "jsonc-parser": "^3.2.0",
52
50
  "pino": "^8.15.1",
53
51
  "pino-pretty": "^10.2.0",
54
52
  "posthog-node": "^3.1.2",
55
- "rollup-plugin-node-polyfills": "^0.2.1",
56
53
  "semver": "^7.5.4"
57
54
  }
58
55
  }