@powerlines/plugin-id 0.9.136 → 0.9.138
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let powerlines_lib_utilities_file_header = require("powerlines/lib/utilities/file-header");
|
|
2
3
|
|
|
3
4
|
//#region src/components/nanoid.ts
|
|
4
5
|
/**
|
|
@@ -15,7 +16,7 @@ function nanoidModule(context) {
|
|
|
15
16
|
* @module ${context.config.output.builtinPrefix}:id
|
|
16
17
|
*/
|
|
17
18
|
|
|
18
|
-
${
|
|
19
|
+
${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* Generate a random string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-id",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.138",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin that provides unique identifier generation capabilities at runtime by adding the `id` builtin module.",
|
|
6
6
|
"repository": {
|
|
@@ -131,13 +131,12 @@
|
|
|
131
131
|
"@storm-software/config-tools": "^1.188.75",
|
|
132
132
|
"@stryke/path": "^0.24.1",
|
|
133
133
|
"defu": "^6.1.4",
|
|
134
|
-
"powerlines": "^0.37.
|
|
134
|
+
"powerlines": "^0.37.3"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@powerlines/
|
|
138
|
-
"@storm-software/tsup": "^0.2.73",
|
|
137
|
+
"@powerlines/plugin-plugin": "^0.12.81",
|
|
139
138
|
"@types/node": "^24.10.4"
|
|
140
139
|
},
|
|
141
140
|
"publishConfig": { "access": "public" },
|
|
142
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "ae9a5afaa497538477b63988242f433b60974623"
|
|
143
142
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
3
|
-
|
|
4
|
-
//#region ../powerlines/src/lib/utilities/file-header.ts
|
|
5
|
-
function getBaseFileHeader(context) {
|
|
6
|
-
return `
|
|
7
|
-
// Generated with ${(0, __stryke_string_format_title_case.titleCase)(context.config.framework)}
|
|
8
|
-
// Note: Do not edit this file manually - it will be overwritten automatically
|
|
9
|
-
`;
|
|
10
|
-
}
|
|
11
|
-
function getFileHeader(context, options = {}) {
|
|
12
|
-
const { directive = null, prettierIgnore = false } = options;
|
|
13
|
-
return `/* eslint-disable */
|
|
14
|
-
// biome-ignore lint: disable
|
|
15
|
-
${prettierIgnore ? `// prettier-ignore` : ""}${directive ? `\n\n${directive}\n` : "\n"}
|
|
16
|
-
${getBaseFileHeader(context)}
|
|
17
|
-
|
|
18
|
-
`;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
exports.getFileHeader = getFileHeader;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { titleCase } from "@stryke/string-format/title-case";
|
|
2
|
-
|
|
3
|
-
//#region ../powerlines/src/lib/utilities/file-header.ts
|
|
4
|
-
function getBaseFileHeader(context) {
|
|
5
|
-
return `
|
|
6
|
-
// Generated with ${titleCase(context.config.framework)}
|
|
7
|
-
// Note: Do not edit this file manually - it will be overwritten automatically
|
|
8
|
-
`;
|
|
9
|
-
}
|
|
10
|
-
function getFileHeader(context, options = {}) {
|
|
11
|
-
const { directive = null, prettierIgnore = false } = options;
|
|
12
|
-
return `/* eslint-disable */
|
|
13
|
-
// biome-ignore lint: disable
|
|
14
|
-
${prettierIgnore ? `// prettier-ignore` : ""}${directive ? `\n\n${directive}\n` : "\n"}
|
|
15
|
-
${getBaseFileHeader(context)}
|
|
16
|
-
|
|
17
|
-
`;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { getFileHeader };
|