@powerlines/plugin-id 0.9.6 → 0.9.8
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/chunk-FBBMZ4NC.cjs +7 -0
- package/dist/chunk-UCUR73HG.js +7 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +22 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +1 -0
- package/dist/components/nanoid.cjs +96 -0
- package/dist/components/nanoid.d.cts +31 -0
- package/dist/components/nanoid.d.ts +31 -0
- package/dist/components/nanoid.js +96 -0
- package/dist/index-CZ8NfQGb.d.cts +1331 -0
- package/dist/index-CZ8NfQGb.d.ts +1331 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +30 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +21 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +21 -0
- package/dist/types/plugin.d.ts +21 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +8 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),types$1=require('@storm-software/config-tools/types'),o=require('defu'),nanoid=require('./components/nanoid'),components=require('./components'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var o__default=/*#__PURE__*/_interopDefault(o);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function d(e={}){return {name:"id",async config(){this.log(types$1.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `id` build plugin.");const i={id:o__default.default(e,{type:"nanoid"})};return (!i.id.type||!["nanoid"].includes(i.id.type))&&(i.id.type&&this.log(types$1.LogLevelLabel.WARN,`Invalid ID generation type "${i.id.type}" specified. Defaulting to "nanoid".`),i.id.type="nanoid"),this.log(types$1.LogLevelLabel.DEBUG,`Using ID generation library: ${i.id.type}`),i},async prepare(){this.log(types$1.LogLevelLabel.TRACE,"Preparing the ID runtime artifacts for the Powerlines project.");let i;switch(this.config.id.type){case "nanoid":default:i=nanoid.nanoidModule;break}await this.writeBuiltin(await Promise.resolve(i(this)),"id","id.ts");}}}chunkFBBMZ4NC_cjs.a(d,"plugin");var y=d;exports.default=y;exports.plugin=d;Object.keys(components).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return components[k]}})});Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { I as IdPluginOptions, P as Plugin, a as IdPluginContext } from '../index-CZ8NfQGb.cjs';
|
|
2
|
+
export { c as IdPluginResolvedConfig, b as IdPluginUserConfig, U as UniqueIdFormatType } from '../index-CZ8NfQGb.cjs';
|
|
3
|
+
export { nanoidModule } from '../components/nanoid.cjs';
|
|
4
|
+
import '@storm-software/build-tools/types';
|
|
5
|
+
import '@storm-software/config-tools/types';
|
|
6
|
+
import '@storm-software/config/types';
|
|
7
|
+
import '@stryke/types/base';
|
|
8
|
+
import '@stryke/types/configuration';
|
|
9
|
+
import '@stryke/types/file';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@stryke/env/get-env-paths';
|
|
12
|
+
import '@stryke/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'memfs';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'unionfs';
|
|
23
|
+
import '@stryke/types/array';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
27
|
+
*/
|
|
28
|
+
declare function plugin(options?: IdPluginOptions): Plugin<IdPluginContext>;
|
|
29
|
+
|
|
30
|
+
export { IdPluginContext, IdPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { I as IdPluginOptions, P as Plugin, a as IdPluginContext } from '../index-CZ8NfQGb.js';
|
|
2
|
+
export { c as IdPluginResolvedConfig, b as IdPluginUserConfig, U as UniqueIdFormatType } from '../index-CZ8NfQGb.js';
|
|
3
|
+
export { nanoidModule } from '../components/nanoid.js';
|
|
4
|
+
import '@storm-software/build-tools/types';
|
|
5
|
+
import '@storm-software/config-tools/types';
|
|
6
|
+
import '@storm-software/config/types';
|
|
7
|
+
import '@stryke/types/base';
|
|
8
|
+
import '@stryke/types/configuration';
|
|
9
|
+
import '@stryke/types/file';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@stryke/env/get-env-paths';
|
|
12
|
+
import '@stryke/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'memfs';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'unionfs';
|
|
23
|
+
import '@stryke/types/array';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
27
|
+
*/
|
|
28
|
+
declare function plugin(options?: IdPluginOptions): Plugin<IdPluginContext>;
|
|
29
|
+
|
|
30
|
+
export { IdPluginContext, IdPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {a}from'../chunk-UCUR73HG.js';import {LogLevelLabel}from'@storm-software/config-tools/types';import o from'defu';import {nanoidModule}from'./components/nanoid';export*from'./components';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function d(e={}){return {name:"id",async config(){this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `id` build plugin.");const i={id:o(e,{type:"nanoid"})};return (!i.id.type||!["nanoid"].includes(i.id.type))&&(i.id.type&&this.log(LogLevelLabel.WARN,`Invalid ID generation type "${i.id.type}" specified. Defaulting to "nanoid".`),i.id.type="nanoid"),this.log(LogLevelLabel.DEBUG,`Using ID generation library: ${i.id.type}`),i},async prepare(){this.log(LogLevelLabel.TRACE,"Preparing the ID runtime artifacts for the Powerlines project.");let i;switch(this.config.id.type){case "nanoid":default:i=nanoidModule;break}await this.writeBuiltin(await Promise.resolve(i(this)),"id","id.ts");}}}a(d,"plugin");var h=d;export{h as default,d as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as IdPluginContext, I as IdPluginOptions, c as IdPluginResolvedConfig, b as IdPluginUserConfig, U as UniqueIdFormatType } from '../index-CZ8NfQGb.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as IdPluginContext, I as IdPluginOptions, c as IdPluginResolvedConfig, b as IdPluginUserConfig, U as UniqueIdFormatType } from '../index-CZ8NfQGb.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as IdPluginContext, I as IdPluginOptions, c as IdPluginResolvedConfig, b as IdPluginUserConfig, U as UniqueIdFormatType } from '../index-CZ8NfQGb.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as IdPluginContext, I as IdPluginOptions, c as IdPluginResolvedConfig, b as IdPluginUserConfig, U as UniqueIdFormatType } from '../index-CZ8NfQGb.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-id",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
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": {
|
|
@@ -116,16 +116,16 @@
|
|
|
116
116
|
"files": ["dist/**/*"],
|
|
117
117
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@storm-software/config-tools": "^1.188.
|
|
120
|
-
"@stryke/path": "^0.
|
|
119
|
+
"@storm-software/config-tools": "^1.188.19",
|
|
120
|
+
"@stryke/path": "^0.18.5",
|
|
121
121
|
"defu": "^6.1.4",
|
|
122
|
-
"powerlines": "^0.
|
|
122
|
+
"powerlines": "^0.15.0"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
|
-
"@powerlines/nx": "^0.
|
|
126
|
-
"@storm-software/tsup": "^0.2.
|
|
127
|
-
"@types/node": "^22.
|
|
125
|
+
"@powerlines/nx": "^0.10.0",
|
|
126
|
+
"@storm-software/tsup": "^0.2.17",
|
|
127
|
+
"@types/node": "^22.19.0"
|
|
128
128
|
},
|
|
129
129
|
"publishConfig": { "access": "public" },
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "b64f9a9d53b6eb8054c361da347f6623a7ba9e45"
|
|
131
131
|
}
|