@k8ts/instruments 0.1.0
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/LICENSE.md +7 -0
- package/README.md +3 -0
- package/dist/_embedder/base.d.ts +11 -0
- package/dist/_embedder/base.d.ts.map +1 -0
- package/dist/_embedder/base.js +39 -0
- package/dist/_embedder/base.js.map +1 -0
- package/dist/_embedder/index.d.ts +2 -0
- package/dist/_embedder/index.d.ts.map +1 -0
- package/dist/_embedder/index.js +18 -0
- package/dist/_embedder/index.js.map +1 -0
- package/dist/_string/index.d.ts +6 -0
- package/dist/_string/index.d.ts.map +1 -0
- package/dist/_string/index.js +22 -0
- package/dist/_string/index.js.map +1 -0
- package/dist/_string/markers.d.ts +3 -0
- package/dist/_string/markers.d.ts.map +1 -0
- package/dist/_string/markers.js +48 -0
- package/dist/_string/markers.js.map +1 -0
- package/dist/_string/post-processor.d.ts +7 -0
- package/dist/_string/post-processor.d.ts.map +1 -0
- package/dist/_string/post-processor.js +30 -0
- package/dist/_string/post-processor.js.map +1 -0
- package/dist/_string/pretty-objects.d.ts +27 -0
- package/dist/_string/pretty-objects.d.ts.map +1 -0
- package/dist/_string/pretty-objects.js +192 -0
- package/dist/_string/pretty-objects.js.map +1 -0
- package/dist/_string/pretty-print.d.ts +2 -0
- package/dist/_string/pretty-print.d.ts.map +1 -0
- package/dist/_string/pretty-print.js +27 -0
- package/dist/_string/pretty-print.js.map +1 -0
- package/dist/_string/super-script.d.ts +2 -0
- package/dist/_string/super-script.d.ts.map +1 -0
- package/dist/_string/super-script.js +20 -0
- package/dist/_string/super-script.js.map +1 -0
- package/dist/api-kind/index.d.ts +43 -0
- package/dist/api-kind/index.d.ts.map +1 -0
- package/dist/api-kind/index.js +102 -0
- package/dist/api-kind/index.js.map +1 -0
- package/dist/cmd/cli-command.d.ts +23 -0
- package/dist/cmd/cli-command.d.ts.map +1 -0
- package/dist/cmd/cli-command.js +73 -0
- package/dist/cmd/cli-command.js.map +1 -0
- package/dist/cmd/cli-term.d.ts +25 -0
- package/dist/cmd/cli-term.d.ts.map +1 -0
- package/dist/cmd/cli-term.js +55 -0
- package/dist/cmd/cli-term.js.map +1 -0
- package/dist/cmd/index.d.ts +3 -0
- package/dist/cmd/index.d.ts.map +1 -0
- package/dist/cmd/index.js +7 -0
- package/dist/cmd/index.js.map +1 -0
- package/dist/cmd/types.d.ts +5 -0
- package/dist/cmd/types.d.ts.map +1 -0
- package/dist/cmd/types.js +3 -0
- package/dist/cmd/types.js.map +1 -0
- package/dist/displayers/displayers.d.ts +33 -0
- package/dist/displayers/displayers.d.ts.map +1 -0
- package/dist/displayers/displayers.js +129 -0
- package/dist/displayers/displayers.js.map +1 -0
- package/dist/displayers/index.d.ts +2 -0
- package/dist/displayers/index.d.ts.map +1 -0
- package/dist/displayers/index.js +18 -0
- package/dist/displayers/index.js.map +1 -0
- package/dist/env/env.d.ts +20 -0
- package/dist/env/env.d.ts.map +1 -0
- package/dist/env/env.js +68 -0
- package/dist/env/env.js.map +1 -0
- package/dist/env/index.d.ts +3 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +7 -0
- package/dist/env/index.js.map +1 -0
- package/dist/env/types.d.ts +4 -0
- package/dist/env/types.d.ts.map +1 -0
- package/dist/env/types.js +3 -0
- package/dist/env/types.js.map +1 -0
- package/dist/env/validate-name.d.ts +2 -0
- package/dist/env/validate-name.d.ts.map +1 -0
- package/dist/env/validate-name.js +12 -0
- package/dist/env/validate-name.js.map +1 -0
- package/dist/error.d.ts +8 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +20 -0
- package/dist/error.js.map +1 -0
- package/dist/forward-exports/delayed-exports.d.ts +18 -0
- package/dist/forward-exports/delayed-exports.d.ts.map +1 -0
- package/dist/forward-exports/delayed-exports.js +119 -0
- package/dist/forward-exports/delayed-exports.js.map +1 -0
- package/dist/forward-exports/index.d.ts +2 -0
- package/dist/forward-exports/index.d.ts.map +1 -0
- package/dist/forward-exports/index.js +18 -0
- package/dist/forward-exports/index.js.map +1 -0
- package/dist/graph/base-node.d.ts +34 -0
- package/dist/graph/base-node.d.ts.map +1 -0
- package/dist/graph/base-node.js +102 -0
- package/dist/graph/base-node.js.map +1 -0
- package/dist/graph/base-origin-entity.d.ts +19 -0
- package/dist/graph/base-origin-entity.d.ts.map +1 -0
- package/dist/graph/base-origin-entity.js +105 -0
- package/dist/graph/base-origin-entity.js.map +1 -0
- package/dist/graph/dependencies.d.ts +12 -0
- package/dist/graph/dependencies.d.ts.map +1 -0
- package/dist/graph/dependencies.js +82 -0
- package/dist/graph/dependencies.js.map +1 -0
- package/dist/graph/index.d.ts +7 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +23 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/origin-node.d.ts +32 -0
- package/dist/graph/origin-node.d.ts.map +1 -0
- package/dist/graph/origin-node.js +161 -0
- package/dist/graph/origin-node.js.map +1 -0
- package/dist/graph/relations.d.ts +26 -0
- package/dist/graph/relations.d.ts.map +1 -0
- package/dist/graph/relations.js +38 -0
- package/dist/graph/relations.js.map +1 -0
- package/dist/graph/resource-node.d.ts +28 -0
- package/dist/graph/resource-node.d.ts.map +1 -0
- package/dist/graph/resource-node.js +144 -0
- package/dist/graph/resource-node.js.map +1 -0
- package/dist/image/family.d.ts +26 -0
- package/dist/image/family.d.ts.map +1 -0
- package/dist/image/family.js +63 -0
- package/dist/image/family.js.map +1 -0
- package/dist/image/index.d.ts +2 -0
- package/dist/image/index.d.ts.map +1 -0
- package/dist/image/index.js +9 -0
- package/dist/image/index.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/kind-map/index.d.ts +44 -0
- package/dist/kind-map/index.d.ts.map +1 -0
- package/dist/kind-map/index.js +123 -0
- package/dist/kind-map/index.js.map +1 -0
- package/dist/manifest/index.d.ts +46 -0
- package/dist/manifest/index.d.ts.map +1 -0
- package/dist/manifest/index.js +21 -0
- package/dist/manifest/index.js.map +1 -0
- package/dist/manifest/manifest-builder.d.ts +45 -0
- package/dist/manifest/manifest-builder.d.ts.map +1 -0
- package/dist/manifest/manifest-builder.js +66 -0
- package/dist/manifest/manifest-builder.js.map +1 -0
- package/dist/ports/error.d.ts +5 -0
- package/dist/ports/error.d.ts.map +1 -0
- package/dist/ports/error.js +13 -0
- package/dist/ports/error.js.map +1 -0
- package/dist/ports/index.d.ts +7 -0
- package/dist/ports/index.d.ts.map +1 -0
- package/dist/ports/index.js +13 -0
- package/dist/ports/index.js.map +1 -0
- package/dist/ports/map.d.ts +13 -0
- package/dist/ports/map.d.ts.map +1 -0
- package/dist/ports/map.js +38 -0
- package/dist/ports/map.js.map +1 -0
- package/dist/ports/set.d.ts +18 -0
- package/dist/ports/set.d.ts.map +1 -0
- package/dist/ports/set.js +60 -0
- package/dist/ports/set.js.map +1 -0
- package/dist/ports/tools/entry.d.ts +6 -0
- package/dist/ports/tools/entry.d.ts.map +1 -0
- package/dist/ports/tools/entry.js +36 -0
- package/dist/ports/tools/entry.js.map +1 -0
- package/dist/ports/tools/parse.d.ts +3 -0
- package/dist/ports/tools/parse.d.ts.map +1 -0
- package/dist/ports/tools/parse.js +35 -0
- package/dist/ports/tools/parse.js.map +1 -0
- package/dist/ports/types.d.ts +37 -0
- package/dist/ports/types.d.ts.map +1 -0
- package/dist/ports/types.js +3 -0
- package/dist/ports/types.js.map +1 -0
- package/dist/producer/index.d.ts +2 -0
- package/dist/producer/index.d.ts.map +1 -0
- package/dist/producer/index.js +18 -0
- package/dist/producer/index.js.map +1 -0
- package/dist/producer/producer.d.ts +6 -0
- package/dist/producer/producer.d.ts.map +1 -0
- package/dist/producer/producer.js +13 -0
- package/dist/producer/producer.js.map +1 -0
- package/dist/ref-key/index.d.ts +2 -0
- package/dist/ref-key/index.d.ts.map +1 -0
- package/dist/ref-key/index.js +18 -0
- package/dist/ref-key/index.js.map +1 -0
- package/dist/ref-key/ref-key.d.ts +23 -0
- package/dist/ref-key/ref-key.d.ts.map +1 -0
- package/dist/ref-key/ref-key.js +67 -0
- package/dist/ref-key/ref-key.js.map +1 -0
- package/dist/reference/forward-ref.d.ts +22 -0
- package/dist/reference/forward-ref.d.ts.map +1 -0
- package/dist/reference/forward-ref.js +126 -0
- package/dist/reference/forward-ref.js.map +1 -0
- package/dist/reference/index.d.ts +4 -0
- package/dist/reference/index.d.ts.map +1 -0
- package/dist/reference/index.js +8 -0
- package/dist/reference/index.js.map +1 -0
- package/dist/reference/refable.d.ts +12 -0
- package/dist/reference/refable.d.ts.map +1 -0
- package/dist/reference/refable.js +3 -0
- package/dist/reference/refable.js.map +1 -0
- package/dist/resources/index.d.ts +3 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +19 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/objects.d.ts +22 -0
- package/dist/resources/objects.d.ts.map +1 -0
- package/dist/resources/objects.js +93 -0
- package/dist/resources/objects.js.map +1 -0
- package/dist/resources/parser.d.ts +4 -0
- package/dist/resources/parser.d.ts.map +1 -0
- package/dist/resources/parser.js +21 -0
- package/dist/resources/parser.js.map +1 -0
- package/dist/resources/types.d.ts +18 -0
- package/dist/resources/types.d.ts.map +1 -0
- package/dist/resources/types.js +3 -0
- package/dist/resources/types.js.map +1 -0
- package/dist/src.tsbuildinfo +1 -0
- package/dist/test.tsbuildinfo +1 -0
- package/dist/tracing/git.d.ts +19 -0
- package/dist/tracing/git.d.ts.map +1 -0
- package/dist/tracing/git.js +45 -0
- package/dist/tracing/git.js.map +1 -0
- package/dist/tracing/index.d.ts +4 -0
- package/dist/tracing/index.d.ts.map +1 -0
- package/dist/tracing/index.js +20 -0
- package/dist/tracing/index.js.map +1 -0
- package/dist/tracing/trace.d.ts +11 -0
- package/dist/tracing/trace.d.ts.map +1 -0
- package/dist/tracing/trace.js +27 -0
- package/dist/tracing/trace.js.map +1 -0
- package/dist/tracing/traced.d.ts +4 -0
- package/dist/tracing/traced.d.ts.map +1 -0
- package/dist/tracing/traced.js +6 -0
- package/dist/tracing/traced.js.map +1 -0
- package/dist/units/index.d.ts +3 -0
- package/dist/units/index.d.ts.map +1 -0
- package/dist/units/index.js +22 -0
- package/dist/units/index.js.map +1 -0
- package/dist/units/unit-parser.d.ts +19 -0
- package/dist/units/unit-parser.d.ts.map +1 -0
- package/dist/units/unit-parser.js +53 -0
- package/dist/units/unit-parser.js.map +1 -0
- package/dist/units/units.d.ts +37 -0
- package/dist/units/units.d.ts.map +1 -0
- package/dist/units/units.js +36 -0
- package/dist/units/units.js.map +1 -0
- package/package.json +89 -0
- package/src/_embedder/base.ts +42 -0
- package/src/_embedder/index.ts +1 -0
- package/src/_string/index.ts +5 -0
- package/src/_string/markers.ts +47 -0
- package/src/_string/post-processor.ts +25 -0
- package/src/_string/pretty-objects.ts +65 -0
- package/src/_string/pretty-print.ts +24 -0
- package/src/_string/super-script.ts +17 -0
- package/src/api-kind/index.ts +134 -0
- package/src/cmd/cli-command.ts +89 -0
- package/src/cmd/cli-term.ts +60 -0
- package/src/cmd/index.ts +2 -0
- package/src/cmd/types.ts +4 -0
- package/src/displayers/displayers.ts +147 -0
- package/src/displayers/index.ts +1 -0
- package/src/env/env.ts +74 -0
- package/src/env/index.ts +2 -0
- package/src/env/types.ts +7 -0
- package/src/env/validate-name.ts +10 -0
- package/src/error.ts +15 -0
- package/src/forward-exports/delayed-exports.ts +155 -0
- package/src/forward-exports/index.ts +1 -0
- package/src/graph/base-node.ts +125 -0
- package/src/graph/base-origin-entity.ts +44 -0
- package/src/graph/dependencies.ts +27 -0
- package/src/graph/index.ts +6 -0
- package/src/graph/origin-node.ts +118 -0
- package/src/graph/relations.ts +62 -0
- package/src/graph/resource-node.ts +104 -0
- package/src/image/family.ts +71 -0
- package/src/image/index.ts +1 -0
- package/src/index.ts +18 -0
- package/src/kind-map/index.ts +150 -0
- package/src/manifest/index.ts +53 -0
- package/src/manifest/manifest-builder.ts +98 -0
- package/src/ports/error.ts +8 -0
- package/src/ports/index.ts +8 -0
- package/src/ports/map.ts +41 -0
- package/src/ports/set.ts +79 -0
- package/src/ports/tools/entry.ts +43 -0
- package/src/ports/tools/parse.ts +40 -0
- package/src/ports/types.ts +42 -0
- package/src/producer/index.ts +1 -0
- package/src/producer/producer.ts +18 -0
- package/src/ref-key/index.ts +1 -0
- package/src/ref-key/ref-key.ts +76 -0
- package/src/reference/forward-ref.ts +122 -0
- package/src/reference/index.ts +3 -0
- package/src/reference/refable.ts +11 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/objects.ts +99 -0
- package/src/resources/parser.ts +24 -0
- package/src/resources/types.ts +23 -0
- package/src/tracing/git.ts +51 -0
- package/src/tracing/index.ts +3 -0
- package/src/tracing/trace.ts +31 -0
- package/src/tracing/traced.ts +4 -0
- package/src/tsconfig.json +10 -0
- package/src/units/index.ts +2 -0
- package/src/units/unit-parser.ts +63 -0
- package/src/units/units.ts +53 -0
- package/tsconfig.json +15 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025 GregRos
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Embedder<Target extends object, Value> {
|
|
2
|
+
readonly name: string;
|
|
3
|
+
private _symbol;
|
|
4
|
+
constructor(name: string);
|
|
5
|
+
[Symbol.toStringTag](): string;
|
|
6
|
+
toString(): string;
|
|
7
|
+
set(target: Target, data: Value): this;
|
|
8
|
+
tryGet(target: Target): Value | undefined;
|
|
9
|
+
get(target: Target): Value;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/_embedder/base.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK;IAElC,QAAQ,CAAC,IAAI,EAAE,MAAM;IADjC,OAAO,CAAC,OAAO,CAAS;gBACH,IAAI,EAAE,MAAM;IAIjC,CAAC,MAAM,CAAC,WAAW,CAAC;IAIpB,QAAQ;IAIR,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK;IAc/B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS;IAIzC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK;CAS7B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Embedder = void 0;
|
|
4
|
+
class Embedder {
|
|
5
|
+
constructor(name) {
|
|
6
|
+
this.name = name;
|
|
7
|
+
this._symbol = Symbol.for(`build.k8ts.org/${name}`);
|
|
8
|
+
}
|
|
9
|
+
[Symbol.toStringTag]() {
|
|
10
|
+
return `Embedder(${this.name})`;
|
|
11
|
+
}
|
|
12
|
+
toString() {
|
|
13
|
+
return this[Symbol.toStringTag]();
|
|
14
|
+
}
|
|
15
|
+
set(target, data) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(target, this._symbol)) {
|
|
17
|
+
throw new Error(`Decorator ${this.name} already set!`);
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(target, this._symbol, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
value: data,
|
|
22
|
+
writable: true,
|
|
23
|
+
configurable: true
|
|
24
|
+
});
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
tryGet(target) {
|
|
28
|
+
return Reflect.get(target, this._symbol);
|
|
29
|
+
}
|
|
30
|
+
get(target) {
|
|
31
|
+
const input = this.tryGet(target);
|
|
32
|
+
if (!input) {
|
|
33
|
+
throw new Error(`Target of type ${target.constructor.name} doesn't have any embedded data for ${this.name}!`);
|
|
34
|
+
}
|
|
35
|
+
return input;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Embedder = Embedder;
|
|
39
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/_embedder/base.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;IAEjB,YAAqB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAC7B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAA;IACvD,CAAC;IAED,CAAC,MAAM,CAAC,WAAW,CAAC;QAChB,OAAO,YAAY,IAAI,CAAC,IAAI,GAAG,CAAA;IACnC,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAA;IACrC,CAAC;IAED,GAAG,CAAC,MAAc,EAAE,IAAW;QAC3B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7D,MAAM,IAAI,KAAK,CAAC,aAAa,IAAI,CAAC,IAAI,eAAe,CAAC,CAAA;QAC1D,CAAC;QAED,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACxC,UAAU,EAAE,IAAI;YAChB,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;SACrB,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACf,CAAC;IAED,MAAM,CAAC,MAAc;QACjB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAU,CAAA;IACrD,CAAC;IAED,GAAG,CAAC,MAAc;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACjC,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACX,kBAAkB,MAAM,CAAC,WAAW,CAAC,IAAI,uCAAuC,IAAI,CAAC,IAAI,GAAG,CAC/F,CAAA;QACL,CAAC;QACD,OAAO,KAAK,CAAA;IAChB,CAAC;CACJ;AAzCD,4BAyCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_embedder/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./base"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_embedder/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_string/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./markers"), exports);
|
|
18
|
+
__exportStar(require("./post-processor"), exports);
|
|
19
|
+
__exportStar(require("./pretty-objects"), exports);
|
|
20
|
+
__exportStar(require("./pretty-print"), exports);
|
|
21
|
+
__exportStar(require("./super-script"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_string/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,mDAAgC;AAChC,mDAAgC;AAChC,iDAA8B;AAC9B,iDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../src/_string/markers.ts"],"names":[],"mappings":"AAoCA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAQ7D;AAED,eAAO,MAAM,QAAQ,WAAM,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.external = void 0;
|
|
7
|
+
exports.getMarkerForIndex = getMarkerForIndex;
|
|
8
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
+
const interchangeable = {
|
|
10
|
+
diamond: "◆",
|
|
11
|
+
star: "★",
|
|
12
|
+
four_shapes: "❖",
|
|
13
|
+
four_star: "✦",
|
|
14
|
+
star_circled_filled: "✪",
|
|
15
|
+
aster: "✱",
|
|
16
|
+
helm: "☸ ",
|
|
17
|
+
ball_circled: "◉",
|
|
18
|
+
lines_circled: "◍ ",
|
|
19
|
+
plus_circled: "⊕ ",
|
|
20
|
+
triangle_down: "▼",
|
|
21
|
+
dot_triangled: "◬",
|
|
22
|
+
diamond_diamonded: "◈",
|
|
23
|
+
circle_squared_filled: "◙",
|
|
24
|
+
triangle_filled_half: "◭",
|
|
25
|
+
heart_arrow: "❥",
|
|
26
|
+
bullet_squared_filled: "◘",
|
|
27
|
+
copyright: "©",
|
|
28
|
+
section: "§",
|
|
29
|
+
paragraph: "¶",
|
|
30
|
+
weird_circle: "¤",
|
|
31
|
+
euro: "€",
|
|
32
|
+
yen: "¥",
|
|
33
|
+
plus_filled: "✚",
|
|
34
|
+
mac_char: "⌘ "
|
|
35
|
+
};
|
|
36
|
+
const colors = [chalk_1.default.red, chalk_1.default.green, chalk_1.default.yellow, chalk_1.default.blue, chalk_1.default.magenta, chalk_1.default.cyan];
|
|
37
|
+
const numbered = Object.values(interchangeable);
|
|
38
|
+
function getMarkerForIndex(index, alias) {
|
|
39
|
+
const clamedIndex = index % numbered.length;
|
|
40
|
+
const multiplier = Math.floor(index / numbered.length);
|
|
41
|
+
const char = numbered[clamedIndex];
|
|
42
|
+
const color = colors[multiplier % colors.length];
|
|
43
|
+
const marker = [char, alias].join(" ");
|
|
44
|
+
const colored = color(marker);
|
|
45
|
+
return colored;
|
|
46
|
+
}
|
|
47
|
+
exports.external = "∃";
|
|
48
|
+
//# sourceMappingURL=markers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markers.js","sourceRoot":"","sources":["../../src/_string/markers.ts"],"names":[],"mappings":";;;;;;AAoCA,8CAQC;AA5CD,kDAAyB;AAEzB,MAAM,eAAe,GAAG;IACpB,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,GAAG;IACT,WAAW,EAAE,GAAG;IAChB,SAAS,EAAE,GAAG;IACd,mBAAmB,EAAE,GAAG;IAExB,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,GAAG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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-processor.d.ts","sourceRoot":"","sources":["../../src/_string/post-processor.ts"],"names":[],"mappings":"AACA,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,SAAS;IAQjB,KAAK,CAAC,IAAI,EAAE,MAAM;IAMlB,MAAM,CAAC,IAAI,EAAE,MAAM;CAOtB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextPostProcessor = void 0;
|
|
4
|
+
class TextPostProcessor {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.tokens = new Map();
|
|
7
|
+
}
|
|
8
|
+
_genToken() {
|
|
9
|
+
const randomKey = Math.random().toString(36).slice(2, 8);
|
|
10
|
+
const token = `K8TS_TOK_${randomKey}`;
|
|
11
|
+
if (this.tokens.has(token)) {
|
|
12
|
+
return this._genToken();
|
|
13
|
+
}
|
|
14
|
+
return token;
|
|
15
|
+
}
|
|
16
|
+
token(text) {
|
|
17
|
+
const token = this._genToken();
|
|
18
|
+
this.tokens.set(token, text);
|
|
19
|
+
return token;
|
|
20
|
+
}
|
|
21
|
+
render(text) {
|
|
22
|
+
let result = text;
|
|
23
|
+
for (const [token, value] of this.tokens.entries()) {
|
|
24
|
+
result = result.replaceAll(token, value);
|
|
25
|
+
}
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.TextPostProcessor = TextPostProcessor;
|
|
30
|
+
//# sourceMappingURL=post-processor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-processor.js","sourceRoot":"","sources":["../../src/_string/post-processor.ts"],"names":[],"mappings":";;;AACA,MAAa,iBAAiB;IAA9B;QACY,WAAM,GAAG,IAAI,GAAG,EAAqB,CAAA;IAsBjD,CAAC;IArBW,SAAS;QACb,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACxD,MAAM,KAAK,GAAG,YAAY,SAAS,EAAe,CAAA;QAClD,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC,SAAS,EAAE,CAAA;QAC3B,CAAC;QACD,OAAO,KAAK,CAAA;IAChB,CAAC;IACD,KAAK,CAAC,IAAY;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;QAC9B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;QAC5B,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,MAAM,CAAC,IAAY;QACf,IAAI,MAAM,GAAG,IAAI,CAAA;QACjB,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;YACjD,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;QAC5C,CAAC;QACD,OAAO,MAAM,CAAA;IACjB,CAAC;CACJ;AAvBD,8CAuBC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class Attr {
|
|
2
|
+
readonly text: string;
|
|
3
|
+
constructor(text: string);
|
|
4
|
+
}
|
|
5
|
+
export declare class Verb {
|
|
6
|
+
readonly text: string;
|
|
7
|
+
constructor(text: string);
|
|
8
|
+
}
|
|
9
|
+
export declare class Quantity {
|
|
10
|
+
readonly num: number;
|
|
11
|
+
readonly noun: string;
|
|
12
|
+
constructor(num: number, noun: string);
|
|
13
|
+
}
|
|
14
|
+
export declare class RefName {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
constructor(name: string);
|
|
17
|
+
}
|
|
18
|
+
export declare class Dest {
|
|
19
|
+
readonly text: string;
|
|
20
|
+
constructor(text: string);
|
|
21
|
+
}
|
|
22
|
+
export declare function verb(verb: string): Verb;
|
|
23
|
+
export declare function attr(attr: string): Attr;
|
|
24
|
+
export declare function quantity(num: number, noun: string): Quantity;
|
|
25
|
+
export declare function dest(text: string): Dest;
|
|
26
|
+
export declare function ref(name: string): RefName;
|
|
27
|
+
//# sourceMappingURL=pretty-objects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pretty-objects.d.ts","sourceRoot":"","sources":["../../src/_string/pretty-objects.ts"],"names":[],"mappings":"AAGA,qBAIa,IAAI;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CACpC;AACD,qBAIa,IAAI;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CACpC;AACD,qBAQa,QAAQ;IAEb,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM;gBADZ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM;CAE5B;AAED,qBAIa,OAAO;IACJ,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CACpC;AACD,qBAIa,IAAI;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CACpC;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,QAEhC;AACD,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,QAEhC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,YAEjD;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,QAEhC;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,WAE/B"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
+
var _, done = false;
|
|
8
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
+
var context = {};
|
|
10
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
+
if (kind === "accessor") {
|
|
15
|
+
if (result === void 0) continue;
|
|
16
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
+
}
|
|
21
|
+
else if (_ = accept(result)) {
|
|
22
|
+
if (kind === "field") initializers.unshift(_);
|
|
23
|
+
else descriptor[key] = _;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
+
done = true;
|
|
28
|
+
};
|
|
29
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
+
var useValue = arguments.length > 2;
|
|
31
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
+
}
|
|
34
|
+
return useValue ? value : void 0;
|
|
35
|
+
};
|
|
36
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
|
+
};
|
|
40
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
exports.Dest = exports.RefName = exports.Quantity = exports.Verb = exports.Attr = void 0;
|
|
45
|
+
exports.verb = verb;
|
|
46
|
+
exports.attr = attr;
|
|
47
|
+
exports.quantity = quantity;
|
|
48
|
+
exports.dest = dest;
|
|
49
|
+
exports.ref = ref;
|
|
50
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
51
|
+
const displayers_1 = require("../displayers");
|
|
52
|
+
let Attr = (() => {
|
|
53
|
+
let _classDecorators = [(0, displayers_1.displayers)({
|
|
54
|
+
simple: s => s.text,
|
|
55
|
+
pretty: attr => chalk_1.default.yellowBright(attr.text)
|
|
56
|
+
})];
|
|
57
|
+
let _classDescriptor;
|
|
58
|
+
let _classExtraInitializers = [];
|
|
59
|
+
let _classThis;
|
|
60
|
+
var Attr = _classThis = class {
|
|
61
|
+
constructor(text) {
|
|
62
|
+
this.text = text;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
__setFunctionName(_classThis, "Attr");
|
|
66
|
+
(() => {
|
|
67
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
68
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
69
|
+
Attr = _classThis = _classDescriptor.value;
|
|
70
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
71
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
72
|
+
})();
|
|
73
|
+
return Attr = _classThis;
|
|
74
|
+
})();
|
|
75
|
+
exports.Attr = Attr;
|
|
76
|
+
let Verb = (() => {
|
|
77
|
+
let _classDecorators = [(0, displayers_1.displayers)({
|
|
78
|
+
simple: s => s.text,
|
|
79
|
+
pretty: verb => chalk_1.default.bgGreen.bold.white(` ${verb.text} `)
|
|
80
|
+
})];
|
|
81
|
+
let _classDescriptor;
|
|
82
|
+
let _classExtraInitializers = [];
|
|
83
|
+
let _classThis;
|
|
84
|
+
var Verb = _classThis = class {
|
|
85
|
+
constructor(text) {
|
|
86
|
+
this.text = text;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
__setFunctionName(_classThis, "Verb");
|
|
90
|
+
(() => {
|
|
91
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
92
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
93
|
+
Verb = _classThis = _classDescriptor.value;
|
|
94
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
95
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
96
|
+
})();
|
|
97
|
+
return Verb = _classThis;
|
|
98
|
+
})();
|
|
99
|
+
exports.Verb = Verb;
|
|
100
|
+
let Quantity = (() => {
|
|
101
|
+
let _classDecorators = [(0, displayers_1.displayers)({
|
|
102
|
+
simple: s => `${s.num} ${s.noun}`,
|
|
103
|
+
pretty(self) {
|
|
104
|
+
const { num, noun } = self;
|
|
105
|
+
const nounForm = num > 1 ? `${noun}s` : noun;
|
|
106
|
+
return `${chalk_1.default.red(num)} ${chalk_1.default.green(nounForm)}`;
|
|
107
|
+
}
|
|
108
|
+
})];
|
|
109
|
+
let _classDescriptor;
|
|
110
|
+
let _classExtraInitializers = [];
|
|
111
|
+
let _classThis;
|
|
112
|
+
var Quantity = _classThis = class {
|
|
113
|
+
constructor(num, noun) {
|
|
114
|
+
this.num = num;
|
|
115
|
+
this.noun = noun;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
__setFunctionName(_classThis, "Quantity");
|
|
119
|
+
(() => {
|
|
120
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
121
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
122
|
+
Quantity = _classThis = _classDescriptor.value;
|
|
123
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
124
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
125
|
+
})();
|
|
126
|
+
return Quantity = _classThis;
|
|
127
|
+
})();
|
|
128
|
+
exports.Quantity = Quantity;
|
|
129
|
+
let RefName = (() => {
|
|
130
|
+
let _classDecorators = [(0, displayers_1.displayers)({
|
|
131
|
+
simple: s => s.name,
|
|
132
|
+
pretty: refName => chalk_1.default.bgGrey.bold.white(` ${refName.name} `)
|
|
133
|
+
})];
|
|
134
|
+
let _classDescriptor;
|
|
135
|
+
let _classExtraInitializers = [];
|
|
136
|
+
let _classThis;
|
|
137
|
+
var RefName = _classThis = class {
|
|
138
|
+
constructor(name) {
|
|
139
|
+
this.name = name;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
__setFunctionName(_classThis, "RefName");
|
|
143
|
+
(() => {
|
|
144
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
145
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
146
|
+
RefName = _classThis = _classDescriptor.value;
|
|
147
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
148
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
149
|
+
})();
|
|
150
|
+
return RefName = _classThis;
|
|
151
|
+
})();
|
|
152
|
+
exports.RefName = RefName;
|
|
153
|
+
let Dest = (() => {
|
|
154
|
+
let _classDecorators = [(0, displayers_1.displayers)({
|
|
155
|
+
simple: s => s.text,
|
|
156
|
+
pretty: dest => chalk_1.default.blueBright(dest.text)
|
|
157
|
+
})];
|
|
158
|
+
let _classDescriptor;
|
|
159
|
+
let _classExtraInitializers = [];
|
|
160
|
+
let _classThis;
|
|
161
|
+
var Dest = _classThis = class {
|
|
162
|
+
constructor(text) {
|
|
163
|
+
this.text = text;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
__setFunctionName(_classThis, "Dest");
|
|
167
|
+
(() => {
|
|
168
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
169
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
170
|
+
Dest = _classThis = _classDescriptor.value;
|
|
171
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
172
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
173
|
+
})();
|
|
174
|
+
return Dest = _classThis;
|
|
175
|
+
})();
|
|
176
|
+
exports.Dest = Dest;
|
|
177
|
+
function verb(verb) {
|
|
178
|
+
return new Verb(verb);
|
|
179
|
+
}
|
|
180
|
+
function attr(attr) {
|
|
181
|
+
return new Attr(attr);
|
|
182
|
+
}
|
|
183
|
+
function quantity(num, noun) {
|
|
184
|
+
return new Quantity(num, noun);
|
|
185
|
+
}
|
|
186
|
+
function dest(text) {
|
|
187
|
+
return new Dest(text);
|
|
188
|
+
}
|
|
189
|
+
function ref(name) {
|
|
190
|
+
return new RefName(name);
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=pretty-objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pretty-objects.js","sourceRoot":"","sources":["../../src/_string/pretty-objects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,oBAEC;AACD,oBAEC;AAED,4BAEC;AAED,oBAEC;AAED,kBAEC;AAhED,kDAAyB;AACzB,8CAA0C;IAM7B,IAAI;4BAJhB,IAAA,uBAAU,EAAC;YACR,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;YACnB,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,eAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;SAChD,CAAC;;;;;QAEE,YAAqB,IAAY;YAAZ,SAAI,GAAJ,IAAI,CAAQ;QAAG,CAAC;;;;;QADzC,6KAEC;;;QAFY,uDAAI;;;;AAAJ,oBAAI;IAOJ,IAAI;4BAJhB,IAAA,uBAAU,EAAC;YACR,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;YACnB,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,eAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC;SAC7D,CAAC;;;;;QAEE,YAAqB,IAAY;YAAZ,SAAI,GAAJ,IAAI,CAAQ;QAAG,CAAC;;;;;QADzC,6KAEC;;;QAFY,uDAAI;;;;AAAJ,oBAAI;IAWJ,QAAQ;4BARpB,IAAA,uBAAU,EAAC;YACR,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,EAAE;YACjC,MAAM,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AC,CAAA;AACzB,CAAC;AACD,SAAgB,IAAI,CAAC,IAAY;IAC7B,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC;AAED,SAAgB,QAAQ,CAAC,GAAW,EAAE,IAAY;IAC9C,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,IAAI,CAAC,IAAY;IAC7B,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC;AAED,SAAgB,GAAG,CAAC,IAAY;IAC5B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pretty-print.d.ts","sourceRoot":"","sources":["../../src/_string/pretty-print.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,YAAY,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,UAqBxE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pretty = pretty;
|
|
4
|
+
const displayers_1 = require("../displayers");
|
|
5
|
+
function pretty(templateArgs, ...args) {
|
|
6
|
+
args = args.map(arg => {
|
|
7
|
+
const [format, target] = Array.isArray(arg) ? arg : [undefined, arg];
|
|
8
|
+
const x = displayers_1.Displayers.tryGet(target);
|
|
9
|
+
if (x) {
|
|
10
|
+
return x.pretty(format);
|
|
11
|
+
}
|
|
12
|
+
return target;
|
|
13
|
+
});
|
|
14
|
+
const splat = templateArgs
|
|
15
|
+
.map((x, i) => {
|
|
16
|
+
const arg = args[i];
|
|
17
|
+
if (arg) {
|
|
18
|
+
return [x, arg];
|
|
19
|
+
}
|
|
20
|
+
return x;
|
|
21
|
+
})
|
|
22
|
+
.flat()
|
|
23
|
+
.filter(x => x !== undefined);
|
|
24
|
+
const result = splat.join("");
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=pretty-print.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pretty-print.js","sourceRoot":"","sources":["../../src/_string/pretty-print.ts"],"names":[],"mappings":";;AAEA,wBAqBC;AAvBD,8CAA0C;AAE1C,SAAgB,MAAM,CAAC,YAAkC,EAAE,GAAG,IAAW;IACrE,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAClB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,CAAA;QACpE,MAAM,CAAC,GAAG,uBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,EAAE,CAAC;YACJ,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAC3B,CAAC;QACD,OAAO,MAAM,CAAA;IACjB,CAAC,CAAC,CAAA;IACF,MAAM,KAAK,GAAG,YAAY;SACrB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACV,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;QACnB,IAAI,GAAG,EAAE,CAAC;YACN,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;QACnB,CAAC;QACD,OAAO,CAAC,CAAA;IACZ,CAAC,CAAC;SACD,IAAI,EAAE;SACN,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAA;IACjC,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC7B,OAAO,MAAM,CAAA;AACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"super-script.d.ts","sourceRoot":"","sources":["../../src/_string/super-script.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAc/C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toSuperScript = toSuperScript;
|
|
4
|
+
const digits = ["⁰", "¹", "²", "³", "⁴", "⁵", "⁶", "⁷", "⁸", "⁹"];
|
|
5
|
+
function toSuperScript(n) {
|
|
6
|
+
if (n < 0) {
|
|
7
|
+
return "⁻" + toSuperScript(-n);
|
|
8
|
+
}
|
|
9
|
+
const num = [];
|
|
10
|
+
while (n >= 0) {
|
|
11
|
+
const digit = n % 10;
|
|
12
|
+
n = Math.floor(n / 10);
|
|
13
|
+
num.unshift(digits[digit]);
|
|
14
|
+
if (n === 0) {
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return num.join("");
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=super-script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"super-script.js","sourceRoot":"","sources":["../../src/_string/super-script.ts"],"names":[],"mappings":";;AAEA,sCAcC;AAhBD,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAEjE,SAAgB,aAAa,CAAC,CAAS;IACnC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACR,OAAO,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IAClC,CAAC;IACD,MAAM,GAAG,GAAG,EAAE,CAAA;IACd,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,CAAA;QACpB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAA;QACtB,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QAC1B,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACV,MAAK;QACT,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACvB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type Kind<Name extends string = string, Version extends Kind.Version = Kind.Version> = Kind.Kind<Name, Version>;
|
|
2
|
+
export declare namespace Kind {
|
|
3
|
+
type InputVersion = `v${string}`;
|
|
4
|
+
interface IdentParent {
|
|
5
|
+
text: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
abstract class Identifier<Name extends string = string, Parent extends IdentParent | null = IdentParent | null> implements IdentParent {
|
|
9
|
+
readonly name: Name;
|
|
10
|
+
readonly parent: Parent;
|
|
11
|
+
constructor(name: Name, parent: Parent);
|
|
12
|
+
get text(): string;
|
|
13
|
+
abstract child<Name extends string>(name: Name): Identifier<Name, this>;
|
|
14
|
+
equals(other: any): boolean;
|
|
15
|
+
private hashCode;
|
|
16
|
+
}
|
|
17
|
+
class Group<const Name extends string = string> extends Identifier<Name, null> {
|
|
18
|
+
name: Name;
|
|
19
|
+
constructor(name: Name);
|
|
20
|
+
version<Version extends InputVersion>(apiVersion: Version): Kind.Version<Version, this>;
|
|
21
|
+
child<Name extends string>(name: Name): Version<Name, this>;
|
|
22
|
+
}
|
|
23
|
+
class Version<const _Version extends string = string, const _Group extends Group = Group> extends Identifier<_Version, _Group> {
|
|
24
|
+
kind<Kind extends string>(kind: Kind): Kind.Kind<Kind, this>;
|
|
25
|
+
get group(): _Group;
|
|
26
|
+
child<Name extends string>(name: Name): Kind<Name, this>;
|
|
27
|
+
}
|
|
28
|
+
class Kind<const Name extends string = string, const V extends Version = Version> extends Identifier<Name, V> {
|
|
29
|
+
get version(): V;
|
|
30
|
+
get group(): Group<string>;
|
|
31
|
+
subkind<SubKind extends string>(subkind: SubKind): Kind.SubKind<SubKind, this>;
|
|
32
|
+
child<Name extends string>(name: Name): SubKind<Name, this>;
|
|
33
|
+
}
|
|
34
|
+
class SubKind<_SubKind extends string = string, _Parent extends Kind = Kind> extends Identifier<_SubKind, _Parent> {
|
|
35
|
+
constructor(name: _SubKind, parent: _Parent);
|
|
36
|
+
subkind<SubKind extends string>(subkind: SubKind): never;
|
|
37
|
+
child<Name extends string>(name: Name): never;
|
|
38
|
+
}
|
|
39
|
+
function group<ApiGroup extends string>(apiGroup: ApiGroup): Group<ApiGroup>;
|
|
40
|
+
function version<ApiVersion extends InputVersion>(apiVersion: ApiVersion): Version<ApiVersion, Group<"">>;
|
|
41
|
+
}
|
|
42
|
+
export declare function kinded(kind: Kind.Identifier): <T extends abstract new (...args: any[]) => object>(ctor: T) => T;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api-kind/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,IAAI,CACZ,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,OAAO,SAAS,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAC3C,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AAC5B,yBAAiB,IAAI,CAAC;IAClB,KAAY,YAAY,GAAG,IAAI,MAAM,EAAE,CAAA;IAEvC,UAAiB,WAAW;QACxB,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACf;IAED,eAAsB,UAAU,CAC5B,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,MAAM,SAAS,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CACxD,YAAW,WAAW;QAGhB,QAAQ,CAAC,IAAI,EAAE,IAAI;QACnB,QAAQ,CAAC,MAAM,EAAE,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