@powerlines/plugin-id 0.9.678 → 0.9.680
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/components/index.d.cts +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/nanoid.d.cts +2 -12
- package/dist/components/nanoid.d.mts +2 -12
- package/dist/index.cjs +29 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -0
- package/dist/nanoid-Byw-VrSj.d.mts +12 -0
- package/dist/nanoid-Byw-VrSj.d.mts.map +1 -0
- package/dist/nanoid-ChiPNdZd.d.cts +12 -0
- package/dist/nanoid-ChiPNdZd.d.cts.map +1 -0
- package/dist/plugin-lj05_fnp.d.cts +31 -0
- package/dist/plugin-lj05_fnp.d.cts.map +1 -0
- package/dist/plugin-lj05_fnp.d.mts +31 -0
- package/dist/plugin-lj05_fnp.d.mts.map +1 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +2 -31
- package/dist/types/plugin.d.mts +2 -31
- package/package.json +4 -4
- package/dist/_virtual/_rolldown/runtime.cjs +0 -28
- package/dist/components/nanoid.d.cts.map +0 -1
- package/dist/components/nanoid.d.mts.map +0 -1
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { nanoidModule } from "
|
|
1
|
+
import { t as nanoidModule } from "../nanoid-ChiPNdZd.cjs";
|
|
2
2
|
export { nanoidModule };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { nanoidModule } from "
|
|
1
|
+
import { t as nanoidModule } from "../nanoid-Byw-VrSj.mjs";
|
|
2
2
|
export { nanoidModule };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Generates the nanoid module content.
|
|
5
|
-
*
|
|
6
|
-
* @param context - The build context containing runtime information.
|
|
7
|
-
* @returns A string representing the nanoid module code.
|
|
8
|
-
*/
|
|
9
|
-
declare function nanoidModule(context: IdPluginContext): string;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { nanoidModule };
|
|
12
|
-
//# sourceMappingURL=nanoid.d.cts.map
|
|
1
|
+
import { t as nanoidModule } from "../nanoid-ChiPNdZd.cjs";
|
|
2
|
+
export { nanoidModule };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Generates the nanoid module content.
|
|
5
|
-
*
|
|
6
|
-
* @param context - The build context containing runtime information.
|
|
7
|
-
* @returns A string representing the nanoid module code.
|
|
8
|
-
*/
|
|
9
|
-
declare function nanoidModule(context: IdPluginContext): string;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { nanoidModule };
|
|
12
|
-
//# sourceMappingURL=nanoid.d.mts.map
|
|
1
|
+
import { t as nanoidModule } from "../nanoid-Byw-VrSj.mjs";
|
|
2
|
+
export { nanoidModule };
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
3
29
|
const require_components_nanoid = require('./components/nanoid.cjs');
|
|
4
30
|
require('./components/index.cjs');
|
|
31
|
+
require('./types/index.cjs');
|
|
5
32
|
let defu = require("defu");
|
|
6
|
-
defu =
|
|
33
|
+
defu = __toESM(defu, 1);
|
|
7
34
|
|
|
8
35
|
//#region src/index.ts
|
|
9
36
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { nanoidModule } from "./
|
|
1
|
+
import { a as UniqueIdFormatType, i as IdPluginUserConfig, n as IdPluginOptions, r as IdPluginResolvedConfig, t as IdPluginContext } from "./plugin-lj05_fnp.cjs";
|
|
2
|
+
import { t as nanoidModule } from "./nanoid-ChiPNdZd.cjs";
|
|
3
3
|
import "./components/index.cjs";
|
|
4
4
|
import "./types/index.cjs";
|
|
5
5
|
import { Plugin } from "powerlines";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { nanoidModule } from "./
|
|
1
|
+
import { a as UniqueIdFormatType, i as IdPluginUserConfig, n as IdPluginOptions, r as IdPluginResolvedConfig, t as IdPluginContext } from "./plugin-lj05_fnp.mjs";
|
|
2
|
+
import { t as nanoidModule } from "./nanoid-Byw-VrSj.mjs";
|
|
3
3
|
import "./components/index.mjs";
|
|
4
4
|
import "./types/index.mjs";
|
|
5
5
|
import { Plugin } from "powerlines";
|
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as IdPluginContext } from "./plugin-lj05_fnp.mjs";
|
|
2
|
+
//#region src/components/nanoid.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Generates the nanoid module content.
|
|
5
|
+
*
|
|
6
|
+
* @param context - The build context containing runtime information.
|
|
7
|
+
* @returns A string representing the nanoid module code.
|
|
8
|
+
*/
|
|
9
|
+
declare function nanoidModule(context: IdPluginContext): string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { nanoidModule as t };
|
|
12
|
+
//# sourceMappingURL=nanoid-Byw-VrSj.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nanoid-Byw-VrSj.d.mts","names":[],"sources":["../src/components/nanoid.ts"],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t as IdPluginContext } from "./plugin-lj05_fnp.cjs";
|
|
2
|
+
//#region src/components/nanoid.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Generates the nanoid module content.
|
|
5
|
+
*
|
|
6
|
+
* @param context - The build context containing runtime information.
|
|
7
|
+
* @returns A string representing the nanoid module code.
|
|
8
|
+
*/
|
|
9
|
+
declare function nanoidModule(context: IdPluginContext): string;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { nanoidModule as t };
|
|
12
|
+
//# sourceMappingURL=nanoid-ChiPNdZd.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nanoid-ChiPNdZd.d.cts","names":[],"sources":["../src/components/nanoid.ts"],"mappings":";;;;;;;;iBA2BgB,aAAa,SAAS"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
//#region src/types/plugin.d.ts
|
|
3
|
+
type UniqueIdFormatType = "nanoid";
|
|
4
|
+
interface IdPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The type of ID generation format to use
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This value is used to determine which ID generation format to use. It can be one of the following:
|
|
10
|
+
* - [nanoid](https://github.com/ai/nanoid)
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue "nanoid"
|
|
13
|
+
*/
|
|
14
|
+
type?: UniqueIdFormatType;
|
|
15
|
+
}
|
|
16
|
+
interface IdPluginUserConfig extends UserConfig {
|
|
17
|
+
/**
|
|
18
|
+
* Options for the ID plugin.
|
|
19
|
+
*/
|
|
20
|
+
id?: IdPluginOptions;
|
|
21
|
+
}
|
|
22
|
+
interface IdPluginResolvedConfig extends ResolvedConfig {
|
|
23
|
+
/**
|
|
24
|
+
* Options for the ID plugin.
|
|
25
|
+
*/
|
|
26
|
+
id: Required<IdPluginOptions>;
|
|
27
|
+
}
|
|
28
|
+
type IdPluginContext<TResolvedConfig extends IdPluginResolvedConfig = IdPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { UniqueIdFormatType as a, IdPluginUserConfig as i, IdPluginOptions as n, IdPluginResolvedConfig as r, IdPluginContext as t };
|
|
31
|
+
//# sourceMappingURL=plugin-lj05_fnp.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-lj05_fnp.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;KAoBY;UAEK;;;;;;;;;;EAUf,OAAO;;UAGQ,2BAA2B;;;;EAI1C,KAAK;;UAGU,+BAA+B;;;;EAI9C,IAAI,SAAS;;KAGH,gBACV,wBAAwB,yBAAyB,0BAC/C,cAAc"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
//#region src/types/plugin.d.ts
|
|
3
|
+
type UniqueIdFormatType = "nanoid";
|
|
4
|
+
interface IdPluginOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The type of ID generation format to use
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This value is used to determine which ID generation format to use. It can be one of the following:
|
|
10
|
+
* - [nanoid](https://github.com/ai/nanoid)
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue "nanoid"
|
|
13
|
+
*/
|
|
14
|
+
type?: UniqueIdFormatType;
|
|
15
|
+
}
|
|
16
|
+
interface IdPluginUserConfig extends UserConfig {
|
|
17
|
+
/**
|
|
18
|
+
* Options for the ID plugin.
|
|
19
|
+
*/
|
|
20
|
+
id?: IdPluginOptions;
|
|
21
|
+
}
|
|
22
|
+
interface IdPluginResolvedConfig extends ResolvedConfig {
|
|
23
|
+
/**
|
|
24
|
+
* Options for the ID plugin.
|
|
25
|
+
*/
|
|
26
|
+
id: Required<IdPluginOptions>;
|
|
27
|
+
}
|
|
28
|
+
type IdPluginContext<TResolvedConfig extends IdPluginResolvedConfig = IdPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { UniqueIdFormatType as a, IdPluginUserConfig as i, IdPluginOptions as n, IdPluginResolvedConfig as r, IdPluginContext as t };
|
|
31
|
+
//# sourceMappingURL=plugin-lj05_fnp.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-lj05_fnp.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":""}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as UniqueIdFormatType, i as IdPluginUserConfig, n as IdPluginOptions, r as IdPluginResolvedConfig, t as IdPluginContext } from "../plugin-lj05_fnp.cjs";
|
|
2
2
|
export { IdPluginContext, IdPluginOptions, IdPluginResolvedConfig, IdPluginUserConfig, UniqueIdFormatType };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as UniqueIdFormatType, i as IdPluginUserConfig, n as IdPluginOptions, r as IdPluginResolvedConfig, t as IdPluginContext } from "../plugin-lj05_fnp.mjs";
|
|
2
2
|
export { IdPluginContext, IdPluginOptions, IdPluginResolvedConfig, IdPluginUserConfig, UniqueIdFormatType };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type UniqueIdFormatType = "nanoid";
|
|
4
|
-
interface IdPluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* The type of ID generation format to use
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* This value is used to determine which ID generation format to use. It can be one of the following:
|
|
10
|
-
* - [nanoid](https://github.com/ai/nanoid)
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue "nanoid"
|
|
13
|
-
*/
|
|
14
|
-
type?: UniqueIdFormatType;
|
|
15
|
-
}
|
|
16
|
-
interface IdPluginUserConfig extends UserConfig {
|
|
17
|
-
/**
|
|
18
|
-
* Options for the ID plugin.
|
|
19
|
-
*/
|
|
20
|
-
id?: IdPluginOptions;
|
|
21
|
-
}
|
|
22
|
-
interface IdPluginResolvedConfig extends ResolvedConfig {
|
|
23
|
-
/**
|
|
24
|
-
* Options for the ID plugin.
|
|
25
|
-
*/
|
|
26
|
-
id: Required<IdPluginOptions>;
|
|
27
|
-
}
|
|
28
|
-
type IdPluginContext<TResolvedConfig extends IdPluginResolvedConfig = IdPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { IdPluginContext, IdPluginOptions, IdPluginResolvedConfig, IdPluginUserConfig, UniqueIdFormatType };
|
|
31
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
1
|
+
import { a as UniqueIdFormatType, i as IdPluginUserConfig, n as IdPluginOptions, r as IdPluginResolvedConfig, t as IdPluginContext } from "../plugin-lj05_fnp.cjs";
|
|
2
|
+
export { IdPluginContext, IdPluginOptions, IdPluginResolvedConfig, IdPluginUserConfig, UniqueIdFormatType };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type UniqueIdFormatType = "nanoid";
|
|
4
|
-
interface IdPluginOptions {
|
|
5
|
-
/**
|
|
6
|
-
* The type of ID generation format to use
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* This value is used to determine which ID generation format to use. It can be one of the following:
|
|
10
|
-
* - [nanoid](https://github.com/ai/nanoid)
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue "nanoid"
|
|
13
|
-
*/
|
|
14
|
-
type?: UniqueIdFormatType;
|
|
15
|
-
}
|
|
16
|
-
interface IdPluginUserConfig extends UserConfig {
|
|
17
|
-
/**
|
|
18
|
-
* Options for the ID plugin.
|
|
19
|
-
*/
|
|
20
|
-
id?: IdPluginOptions;
|
|
21
|
-
}
|
|
22
|
-
interface IdPluginResolvedConfig extends ResolvedConfig {
|
|
23
|
-
/**
|
|
24
|
-
* Options for the ID plugin.
|
|
25
|
-
*/
|
|
26
|
-
id: Required<IdPluginOptions>;
|
|
27
|
-
}
|
|
28
|
-
type IdPluginContext<TResolvedConfig extends IdPluginResolvedConfig = IdPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { IdPluginContext, IdPluginOptions, IdPluginResolvedConfig, IdPluginUserConfig, UniqueIdFormatType };
|
|
31
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
1
|
+
import { a as UniqueIdFormatType, i as IdPluginUserConfig, n as IdPluginOptions, r as IdPluginResolvedConfig, t as IdPluginContext } from "../plugin-lj05_fnp.mjs";
|
|
2
|
+
export { IdPluginContext, IdPluginOptions, IdPluginResolvedConfig, IdPluginUserConfig, UniqueIdFormatType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-id",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.680",
|
|
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": {
|
|
@@ -117,15 +117,15 @@
|
|
|
117
117
|
"@storm-software/config-tools": "^1.190.133",
|
|
118
118
|
"@stryke/path": "^0.29.35",
|
|
119
119
|
"defu": "^6.1.7",
|
|
120
|
-
"powerlines": "^0.47.
|
|
120
|
+
"powerlines": "^0.47.209"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
123
|
+
"@powerlines/plugin-plugin": "^0.12.622",
|
|
124
124
|
"@types/node": "^25.9.5"
|
|
125
125
|
},
|
|
126
126
|
"publishConfig": { "access": "public" },
|
|
127
127
|
"main": "./dist/index.cjs",
|
|
128
128
|
"module": "./dist/index.mjs",
|
|
129
129
|
"types": "./dist/index.d.cts",
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "88974b224a5cdb97dbd377373c9ed7f8a8780324"
|
|
131
131
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
exports.__toESM = __toESM;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nanoid.d.cts","names":[],"sources":["../../src/components/nanoid.ts"],"mappings":";;;;;;;;iBA2BgB,aAAa,SAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nanoid.d.mts","names":[],"sources":["../../src/components/nanoid.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;KAoBY;UAEK;;;;;;;;;;EAUf,OAAO;;UAGQ,2BAA2B;;;;EAI1C,KAAK;;UAGU,+BAA+B;;;;EAI9C,IAAI,SAAS;;KAGH,gBACV,wBAAwB,yBAAyB,0BAC/C,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
|