@power-plant/core 0.0.55 → 0.0.61
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/config.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
}
|
|
20
20
|
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
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
23
|
value: mod,
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
package/dist/execute.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_execute = require('./execute-
|
|
2
|
+
const require_execute = require('./execute-DljRA_Hj.cjs');
|
|
3
3
|
require('./context.cjs');
|
|
4
4
|
|
|
5
5
|
exports.createExecute = require_execute.createExecute;
|
package/dist/helpers/meta.cjs
CHANGED
|
@@ -97,7 +97,8 @@ function resolveMetaExample(schema, meta, input) {
|
|
|
97
97
|
description: example.description || `Example Specification #${i + 1}`,
|
|
98
98
|
value: example.value
|
|
99
99
|
} : void 0).filter(Boolean);
|
|
100
|
-
|
|
100
|
+
const value = input ?? meta.examples ?? schema?.examples ?? [];
|
|
101
|
+
return normalizeExamples((0, _stryke_convert_to_array.toArray)(value));
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
103
104
|
* Resolves and de-duplicates metadata links from input, metadata, and schema docs.
|
package/dist/helpers/meta.mjs
CHANGED
|
@@ -96,7 +96,8 @@ function resolveMetaExample(schema, meta, input) {
|
|
|
96
96
|
description: example.description || `Example Specification #${i + 1}`,
|
|
97
97
|
value: example.value
|
|
98
98
|
} : void 0).filter(Boolean);
|
|
99
|
-
|
|
99
|
+
const value = input ?? meta.examples ?? schema?.examples ?? [];
|
|
100
|
+
return normalizeExamples(toArray(value));
|
|
100
101
|
}
|
|
101
102
|
/**
|
|
102
103
|
* Resolves and de-duplicates metadata links from input, metadata, and schema docs.
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_execute = require('./execute-
|
|
2
|
+
const require_execute = require('./execute-DljRA_Hj.cjs');
|
|
3
3
|
const require_config = require('./config.cjs');
|
|
4
4
|
const require_context = require('./context.cjs');
|
|
5
5
|
const require_define = require('./define.cjs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.61",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ Generate anything from a specification",
|
|
6
6
|
"keywords": ["power-plant", "storm-software"],
|
|
@@ -160,10 +160,7 @@
|
|
|
160
160
|
"typings": "dist/index.d.mts",
|
|
161
161
|
"files": ["dist"],
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@power-plant/schema": "^0.0.
|
|
164
|
-
"@stryke/string-format": "^0.17.40",
|
|
165
|
-
"@stryke/type-checks": "^0.6.31",
|
|
166
|
-
"@stryke/types": "^0.12.26",
|
|
163
|
+
"@power-plant/schema": "^0.0.59",
|
|
167
164
|
"@stryke/convert": "^0.7.29",
|
|
168
165
|
"@stryke/date": "^0.0.10",
|
|
169
166
|
"@stryke/env": "^0.20.116",
|
|
@@ -172,17 +169,20 @@
|
|
|
172
169
|
"@stryke/json": "^0.15.22",
|
|
173
170
|
"@stryke/path": "^0.29.25",
|
|
174
171
|
"@stryke/resolve": "^0.0.14",
|
|
172
|
+
"@stryke/string-format": "^0.17.40",
|
|
173
|
+
"@stryke/type-checks": "^0.6.31",
|
|
174
|
+
"@stryke/types": "^0.12.26",
|
|
175
175
|
"@stryke/unique-id": "^0.3.110",
|
|
176
176
|
"c12": "^3.3.4",
|
|
177
|
-
"jiti": "^2.7.0",
|
|
178
177
|
"defu": "^6.1.7",
|
|
178
|
+
"jiti": "^2.7.0",
|
|
179
179
|
"unstorage": "^1.17.5"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
182
|
+
"@powerlines/plugin-tsdown": "^0.1.578",
|
|
183
183
|
"@types/node": "^25.9.5",
|
|
184
184
|
"typescript": "^6.0.3"
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "f58905215edc6074bb852c90c0df9e62409e4185"
|
|
188
188
|
}
|