@prisma/ts-builders 7.9.0-dev.3 → 7.9.0-dev.31
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/DocComment.js +1 -1
- package/dist/DocComment.mjs +1 -1
- package/dist/DocComment.test.js +8 -0
- package/dist/DocComment.test.mjs +8 -0
- package/package.json +2 -2
package/dist/DocComment.js
CHANGED
package/dist/DocComment.mjs
CHANGED
package/dist/DocComment.test.js
CHANGED
|
@@ -37,6 +37,14 @@ var import_stringify = require("./stringify");
|
|
|
37
37
|
"
|
|
38
38
|
`);
|
|
39
39
|
});
|
|
40
|
+
(0, import_vitest.test)("escapes comment terminator", () => {
|
|
41
|
+
(0, import_vitest.expect)((0, import_stringify.stringify)((0, import_DocComment.docComment)("before */ after"))).toMatchInlineSnapshot(`
|
|
42
|
+
"/**
|
|
43
|
+
* before *\\/ after
|
|
44
|
+
*/
|
|
45
|
+
"
|
|
46
|
+
`);
|
|
47
|
+
});
|
|
40
48
|
(0, import_vitest.test)("tagged template - empty", () => {
|
|
41
49
|
(0, import_vitest.expect)((0, import_stringify.stringify)(import_DocComment.docComment``)).toMatchInlineSnapshot(`
|
|
42
50
|
"/**
|
package/dist/DocComment.test.mjs
CHANGED
|
@@ -36,6 +36,14 @@ test("multiple addText calls", () => {
|
|
|
36
36
|
"
|
|
37
37
|
`);
|
|
38
38
|
});
|
|
39
|
+
test("escapes comment terminator", () => {
|
|
40
|
+
expect(stringify(docComment("before */ after"))).toMatchInlineSnapshot(`
|
|
41
|
+
"/**
|
|
42
|
+
* before *\\/ after
|
|
43
|
+
*/
|
|
44
|
+
"
|
|
45
|
+
`);
|
|
46
|
+
});
|
|
39
47
|
test("tagged template - empty", () => {
|
|
40
48
|
expect(stringify(docComment``)).toMatchInlineSnapshot(`
|
|
41
49
|
"/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/ts-builders",
|
|
3
|
-
"version": "7.9.0-dev.
|
|
3
|
+
"version": "7.9.0-dev.31",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@prisma/internals": "7.9.0-dev.
|
|
27
|
+
"@prisma/internals": "7.9.0-dev.31"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|