@powerlines/plugin-prisma 0.4.5 → 0.4.7
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/api/core/pathSerializer.gen.d.cts +2 -2
- package/dist/api/core/pathSerializer.gen.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/constant-case.cjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/constant-case.mjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/constant-case.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/get-words.cjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/get-words.mjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/get-words.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/kebab-case.cjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/kebab-case.mjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/kebab-case.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/snake-case.cjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/snake-case.mjs +1 -1
- package/dist/node_modules/.pnpm/{@stryke_string-format@0.16.0 → @stryke_string-format@0.17.1}/node_modules/@stryke/string-format/dist/snake-case.mjs.map +1 -1
- package/package.json +10 -10
|
@@ -19,9 +19,9 @@ type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
|
|
|
19
19
|
interface SerializePrimitiveParam extends SerializePrimitiveOptions {
|
|
20
20
|
value: string;
|
|
21
21
|
}
|
|
22
|
-
declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "
|
|
22
|
+
declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "." | ";" | "," | "&";
|
|
23
23
|
declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
|
|
24
|
-
declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "
|
|
24
|
+
declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "." | ";" | "," | "&";
|
|
25
25
|
declare const serializeArrayParam: ({
|
|
26
26
|
allowReserved,
|
|
27
27
|
explode,
|
|
@@ -19,9 +19,9 @@ type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
|
|
|
19
19
|
interface SerializePrimitiveParam extends SerializePrimitiveOptions {
|
|
20
20
|
value: string;
|
|
21
21
|
}
|
|
22
|
-
declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "
|
|
22
|
+
declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "." | ";" | "," | "&";
|
|
23
23
|
declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
|
|
24
|
-
declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "
|
|
24
|
+
declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "." | ";" | "," | "&";
|
|
25
25
|
declare const serializeArrayParam: ({
|
|
26
26
|
allowReserved,
|
|
27
27
|
explode,
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_constant_case = require('./node_modules/.pnpm/@stryke_string-format@0.
|
|
4
|
-
const require_kebab_case = require('./node_modules/.pnpm/@stryke_string-format@0.
|
|
3
|
+
const require_constant_case = require('./node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/constant-case.cjs');
|
|
4
|
+
const require_kebab_case = require('./node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/kebab-case.cjs');
|
|
5
5
|
const require_helpers_get_schema = require('./helpers/get-schema.cjs');
|
|
6
6
|
const require_helpers_schema_creator = require('./helpers/schema-creator.cjs');
|
|
7
7
|
let __pulumi_prisma_postgres = require("@pulumi/prisma-postgres");
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { constantCase } from "./node_modules/.pnpm/@stryke_string-format@0.
|
|
2
|
-
import { kebabCase } from "./node_modules/.pnpm/@stryke_string-format@0.
|
|
1
|
+
import { constantCase } from "./node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/constant-case.mjs";
|
|
2
|
+
import { kebabCase } from "./node_modules/.pnpm/@stryke_string-format@0.17.1/node_modules/@stryke/string-format/dist/kebab-case.mjs";
|
|
3
3
|
import { getSchema } from "./helpers/get-schema.mjs";
|
|
4
4
|
import { PrismaSchemaCreator } from "./helpers/schema-creator.mjs";
|
|
5
5
|
import * as prismaPostgres from "@pulumi/prisma-postgres";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_get_words = require('./get-words.cjs');
|
|
2
2
|
const require_snake_case = require('./snake-case.cjs');
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/constant-case.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Check if the input string is in constant case.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getWords } from "./get-words.mjs";
|
|
2
2
|
import { isSnakeCase } from "./snake-case.mjs";
|
|
3
3
|
|
|
4
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/constant-case.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Check if the input string is in constant case.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.
|
|
1
|
+
{"version":3,"file":"constant-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/constant-case.mjs"],"sourcesContent":["import { getWords } from \"./get-words.mjs\";\nimport { isSnakeCase } from \"./snake-case.mjs\";\n\n//#region src/constant-case.ts\n/**\n* Check if the input string is in constant case.\n*\n* @remarks\n* Constant case is defined as all uppercase letters with underscores separating words - \"THIS_IS_AN_EXAMPLE\".\n*\n* @param input - The input string to check.\n* @returns True if the input is in constant case, false otherwise.\n*/\nfunction isConstantCase(input) {\n\treturn input ? /^[A-Z0-9_]+$/.test(input) : false;\n}\n/**\n* Convert the input string to constant case.\n*\n* @remarks\n* Constant case is defined as all uppercase letters with underscores separating words - \"THIS_IS_AN_EXAMPLE\".\n*\n* @param input - The input string.\n* @returns The constant-cased string.\n*/\nfunction constantCase(input) {\n\treturn isConstantCase(input) || input === void 0 ? input : isSnakeCase(input) ? input.toUpperCase() : getWords(input).join(\"_\").toUpperCase();\n}\n\n//#endregion\nexport { constantCase, isConstantCase };\n//# sourceMappingURL=constant-case.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAaA,SAAS,eAAe,OAAO;AAC9B,QAAO,QAAQ,eAAe,KAAK,MAAM,GAAG;;;;;;;;;;;AAW7C,SAAS,aAAa,OAAO;AAC5B,QAAO,eAAe,MAAM,IAAI,UAAU,KAAK,IAAI,QAAQ,YAAY,MAAM,GAAG,MAAM,aAAa,GAAG,SAAS,MAAM,CAAC,KAAK,IAAI,CAAC,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/get-words.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Regular expression pattern to split strings into words for various case conversions
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/get-words.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Regular expression pattern to split strings into words for various case conversions
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-words.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.
|
|
1
|
+
{"version":3,"file":"get-words.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/get-words.mjs"],"sourcesContent":["//#region src/get-words.ts\n/**\n* Regular expression pattern to split strings into words for various case conversions\n*\n* This pattern matches sequences of characters in a string, considering the following case:\n* - Sequences of two or more uppercase letters followed by an uppercase letter and lowercase letters or digits (for acronyms)\n* - Sequences of one uppercase letter optionally followed by lowercase letters and digits\n* - Single uppercase letters\n* - Sequences of digits\n*\n* The resulting match can be used to convert camelCase, snake_case, kebab-case, and other mixed formats into\n* a consistent format like snake case.\n*\n* @example\n* const matches = 'camelCaseHTTPRequest'.match(CASE_SPLIT_PATTERN);\n* // matches: ['camel', 'Case', 'HTTP', 'Request']\n*/\nconst CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|\\d+|[A-Z]+(?![a-z])/g;\nconst RELAXED_SPLIT_PATTERN = /[A-Z/.-]?[a-z/.-]+|\\d+|[A-Z/.-]+(?![a-z/.-])/g;\n/**\n* Splits a string into words using a regular expression pattern\n*\n* @example\n* const words = getWords('camelCaseHTTPRequest');\n* // words: ['camel', 'Case', 'HTTP', 'Request']\n*\n* @param str - The string to split into words\n* @param options - Options for splitting the string\n* @returns An array of words\n*/\nfunction getWords(str, options = {}) {\n\tif (str.length > 5e3) throw new Error(\"The regular expression parameter of `get-words` can't handle strings longer than 2000 characters\");\n\treturn [...str.match(options.split ?? (options.relaxed ? RELAXED_SPLIT_PATTERN : CASE_SPLIT_PATTERN)) ?? []];\n}\n\n//#endregion\nexport { CASE_SPLIT_PATTERN, RELAXED_SPLIT_PATTERN, getWords };\n//# sourceMappingURL=get-words.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,qBAAqB;AAC3B,MAAM,wBAAwB;;;;;;;;;;;;AAY9B,SAAS,SAAS,KAAK,UAAU,EAAE,EAAE;AACpC,KAAI,IAAI,SAAS,IAAK,OAAM,IAAI,MAAM,mGAAmG;AACzI,QAAO,CAAC,GAAG,IAAI,MAAM,QAAQ,UAAU,QAAQ,UAAU,wBAAwB,oBAAoB,IAAI,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_get_words = require('./get-words.cjs');
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/kebab-case.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Check if the input string is in kebab case.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getWords } from "./get-words.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/kebab-case.mjs
|
|
4
4
|
/**
|
|
5
5
|
* Check if the input string is in kebab case.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kebab-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.
|
|
1
|
+
{"version":3,"file":"kebab-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/kebab-case.mjs"],"sourcesContent":["import { getWords } from \"./get-words.mjs\";\n\n//#region src/kebab-case.ts\n/**\n* Check if the input string is in kebab case.\n*\n* @remarks\n* Kebab case is defined as all lowercase letters with hyphens separating words - \"this-is-an-example\".\n*\n* @param input - The input string to check.\n* @returns True if the input is in kebab case, false otherwise.\n*/\nfunction isKebabCase(input) {\n\treturn input ? /^[a-z]+(?:-[a-z0-9]+)*$/.test(input) : false;\n}\n/**\n* Convert the input string to kebab case.\n*\n* @remarks\n* Kebab case is defined as all lowercase letters with hyphens separating words - \"this-is-an-example\".\n*\n* @param input - The input string.\n* @returns The kebab-cased string.\n*/\nfunction kebabCase(input) {\n\tif (isKebabCase(input) || input === void 0) return input;\n\tconst parts = input ? getWords(input) : [];\n\tif (parts.length === 0) return \"\";\n\treturn parts.join(\"-\").toLowerCase();\n}\n\n//#endregion\nexport { isKebabCase, kebabCase };\n//# sourceMappingURL=kebab-case.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAYA,SAAS,YAAY,OAAO;AAC3B,QAAO,QAAQ,0BAA0B,KAAK,MAAM,GAAG;;;;;;;;;;;AAWxD,SAAS,UAAU,OAAO;AACzB,KAAI,YAAY,MAAM,IAAI,UAAU,KAAK,EAAG,QAAO;CACnD,MAAM,QAAQ,QAAQ,SAAS,MAAM,GAAG,EAAE;AAC1C,KAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,QAAO,MAAM,KAAK,IAAI,CAAC,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/snake-case.mjs
|
|
3
3
|
/**
|
|
4
4
|
* Check if the input string is in snake case.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@stryke+string-format@0.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/snake-case.mjs
|
|
2
2
|
/**
|
|
3
3
|
* Check if the input string is in snake case.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snake-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.
|
|
1
|
+
{"version":3,"file":"snake-case.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@stryke+string-format@0.17.1/node_modules/@stryke/string-format/dist/snake-case.mjs"],"sourcesContent":["import { EMPTY_STRING } from \"./types/src/base.mjs\";\nimport { upperCaseFirst } from \"./upper-case-first.mjs\";\nimport { isConstantCase } from \"./constant-case.mjs\";\n\n//#region src/snake-case.ts\n/**\n* Check if the input string is in snake case.\n*\n* @remarks\n* Snake case is defined as all lowercase letters with underscores separating words - \"this_is_an_example\"\n*\n* @param input - The input string to check.\n* @returns True if the input is in snake case, false otherwise.\n*/\nfunction isSnakeCase(input) {\n\treturn input ? /^[a-z]+(?:_[a-z0-9]+)*$/.test(input) : false;\n}\n/**\n* Convert the input string to snake case.\n*\n* @remarks\n* Snake case is defined as all lowercase letters with underscores separating words - \"this_is_an_example\"\n*\n* @param input - The input string.\n* @param options - Options to control the behavior of the function.\n* @returns The snake-cased string.\n*/\nfunction snakeCase(input, options) {\n\tif (isSnakeCase(input) || input === void 0) return input;\n\tif (isConstantCase(input)) return input.toLowerCase();\n\tconst parts = input?.replace(/[A-Z]+/g, (input$1) => upperCaseFirst(input$1) ?? EMPTY_STRING).split(/(?=[A-Z])|[\\s._-]/).map((x) => x.toLowerCase()) ?? [];\n\tif (parts.length === 0) return \"\";\n\tif (parts.length === 1) return parts[0];\n\tconst result = parts.reduce((ret, part) => {\n\t\treturn `${ret}_${part.toLowerCase()}`;\n\t});\n\treturn options?.splitOnNumber === false ? result : result.replace(/[A-Z]\\d/i, (val) => `${val[0]}_${val[1]}`);\n}\n\n//#endregion\nexport { isSnakeCase, snakeCase };\n//# sourceMappingURL=snake-case.mjs.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAcA,SAAS,YAAY,OAAO;AAC3B,QAAO,QAAQ,0BAA0B,KAAK,MAAM,GAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-prisma",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code and a Prisma client from a Prisma schema (PSL).",
|
|
6
6
|
"keywords": ["prisma", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -370,26 +370,26 @@
|
|
|
370
370
|
"typings": "dist/index.d.mts",
|
|
371
371
|
"files": ["dist/**/*"],
|
|
372
372
|
"dependencies": {
|
|
373
|
-
"@powerlines/plugin-pulumi": "^0.5.
|
|
373
|
+
"@powerlines/plugin-pulumi": "^0.5.6",
|
|
374
374
|
"@prisma/get-platform": "^6.19.2",
|
|
375
375
|
"@prisma/prisma-schema-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
|
|
376
|
-
"@stryke/cli": "^0.13.
|
|
377
|
-
"@stryke/fs": "^0.33.
|
|
378
|
-
"@stryke/path": "^0.26.
|
|
379
|
-
"@stryke/type-checks": "^0.5.
|
|
380
|
-
"@stryke/types": "^0.10.
|
|
376
|
+
"@stryke/cli": "^0.13.27",
|
|
377
|
+
"@stryke/fs": "^0.33.55",
|
|
378
|
+
"@stryke/path": "^0.26.17",
|
|
379
|
+
"@stryke/type-checks": "^0.5.36",
|
|
380
|
+
"@stryke/types": "^0.10.50",
|
|
381
381
|
"defu": "^6.1.4",
|
|
382
382
|
"fp-ts": "^2.16.11",
|
|
383
383
|
"jiti": "^2.6.1",
|
|
384
|
-
"powerlines": "^0.40.
|
|
384
|
+
"powerlines": "^0.40.12",
|
|
385
385
|
"prisma-util": "^2.1.1",
|
|
386
386
|
"ts-pattern": "^5.9.0"
|
|
387
387
|
},
|
|
388
388
|
"devDependencies": {
|
|
389
389
|
"@pulumi/pulumi": "^3.225.1",
|
|
390
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
390
|
+
"@powerlines/plugin-plugin": "^0.12.276",
|
|
391
391
|
"@types/node": "^25.3.5"
|
|
392
392
|
},
|
|
393
393
|
"publishConfig": { "access": "public" },
|
|
394
|
-
"gitHead": "
|
|
394
|
+
"gitHead": "ad0d94ce83dcae97d5d345318f5910942ce54e6c"
|
|
395
395
|
}
|