@procedures/predicates 0.0.0-bootstrap.0 → 0.62.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/CHANGELOG.md +29 -0
- package/LICENSE +21 -0
- package/README.md +63 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest.d.ts +3 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +894 -0
- package/dist/manifest.js.map +1 -0
- package/dist/module.d.ts +19 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +23 -0
- package/dist/module.js.map +1 -0
- package/dist/register.d.ts +6 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +8 -0
- package/dist/register.js.map +1 -0
- package/package.json +81 -5
- package/src/index.ts +2 -0
- package/src/manifest.ts +896 -0
- package/src/module.ts +27 -0
- package/src/register.ts +10 -0
package/src/module.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The procedures of `@mark1russell7/predicates` as data. An import of this file registers nothing.
|
|
3
|
+
*
|
|
4
|
+
* The manifest comes from the types of the home: `node scripts/wraps.ts generate` writes
|
|
5
|
+
* `src/manifest.ts`. No procedure is written by hand, so no procedure can drift from its function.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import * as predicates from "@mark1russell7/predicates";
|
|
9
|
+
import { registerModules, PROCEDURE_REGISTRY, type ProcedureModule, type ProcedureRegistry } from "@procedures/client";
|
|
10
|
+
import { exportsModule } from "@procedures/compiler";
|
|
11
|
+
import { manifest } from "./manifest.js";
|
|
12
|
+
|
|
13
|
+
/** The manifest of the procedures: the names, the schemas, the effects and each exemption with its reason. */
|
|
14
|
+
export { manifest as predicatesManifest };
|
|
15
|
+
|
|
16
|
+
/** The procedures `predicates.*`: one for each function of the home with JSON inputs and a JSON output. */
|
|
17
|
+
export const predicatesModule: ProcedureModule = exportsModule(manifest, predicates, { name: "@procedures/predicates" });
|
|
18
|
+
|
|
19
|
+
export default predicatesModule;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* This function registers the procedures of `@procedures/predicates` in a registry. The default is
|
|
23
|
+
* the global registry.
|
|
24
|
+
*/
|
|
25
|
+
export function registerPredicatesProcedures(registry: ProcedureRegistry = PROCEDURE_REGISTRY): void {
|
|
26
|
+
registerModules(registry, [predicatesModule]);
|
|
27
|
+
}
|
package/src/register.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Importing this file registers the procedures of @procedures/predicates in the global registry:
|
|
3
|
+
* `import "@procedures/predicates/register"`. The package root registers nothing.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { registerPredicatesProcedures } from "./module.js";
|
|
7
|
+
|
|
8
|
+
export * from "./module.js";
|
|
9
|
+
|
|
10
|
+
registerPredicatesProcedures();
|