res-pareto-build 0.0.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.
@@ -0,0 +1,7 @@
1
+ import * as glo from "./glossary";
2
+ export type CbuildArray = glo.FBuildArray;
3
+ export type CbuildDictionary = glo.FBuildDictionary;
4
+ export type API = {
5
+ buildArray: CbuildArray;
6
+ buildDictionary: CbuildDictionary;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types.generated";
2
+ export * from "./public.generated";
@@ -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("./types.generated"), exports);
18
+ __exportStar(require("./public.generated"), exports);
@@ -0,0 +1,6 @@
1
+ import { T } from './types.generated';
2
+ import * as mcommon from "glo-pareto-common";
3
+ export type IAdd<GPType> = ($: T.KeyValuePair<GPType>) => void;
4
+ export type IPush<GPType> = ($: T.Type<GPType>) => void;
5
+ export type FBuildArray = <GPType>($: mcommon.T.Null, $c: ($i: IPush<GPType>) => void) => T.Array<GPType>;
6
+ export type FBuildDictionary = <GPType>($: mcommon.T.Null, $c: ($i: IAdd<GPType>) => void) => T.Dictionary<GPType>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import * as pt from 'pareto-core-types';
2
+ export declare namespace T {
3
+ namespace Array {
4
+ type A<GPType> = GPType;
5
+ }
6
+ type Array<GPType> = pt.Array<GPType>;
7
+ namespace Dictionary {
8
+ type D<GPType> = GPType;
9
+ }
10
+ type Dictionary<GPType> = pt.Dictionary<GPType>;
11
+ namespace KeyValuePair {
12
+ type key<GPType> = string;
13
+ type value<GPType> = GPType;
14
+ }
15
+ type KeyValuePair<GPType> = {
16
+ readonly 'key': string;
17
+ readonly 'value': GPType;
18
+ };
19
+ type Type<GPType> = GPType;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./glossary";
2
+ export * from "./api.generated";
@@ -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("./glossary"), exports);
18
+ __exportStar(require("./api.generated"), exports);
@@ -0,0 +1,2 @@
1
+ import { API } from "./api";
2
+ export declare const $a: API;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.$a = void 0;
4
+ const buildArray_native_1 = require("./implementations/buildArray.native");
5
+ const buildDictionary_native_1 = require("./implementations/buildDictionary.native");
6
+ exports.$a = {
7
+ 'buildArray': buildArray_native_1.$$,
8
+ 'buildDictionary': buildDictionary_native_1.$$,
9
+ };
@@ -0,0 +1,2 @@
1
+ import { CbuildArray } from "../api";
2
+ export declare const $$: CbuildArray;
@@ -0,0 +1,35 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.$$ = void 0;
27
+ const pi = __importStar(require("pareto-core-internals"));
28
+ const $$ = ($, $c) => {
29
+ const out = [];
30
+ $c(($) => {
31
+ out.push($);
32
+ });
33
+ return pi.wrapRawArray(out);
34
+ };
35
+ exports.$$ = $$;
@@ -0,0 +1,2 @@
1
+ import { CbuildDictionary } from "../api";
2
+ export declare const $$: CbuildDictionary;
@@ -0,0 +1,35 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.$$ = void 0;
27
+ const pi = __importStar(require("pareto-core-internals"));
28
+ const $$ = ($, $c) => {
29
+ const out = {};
30
+ $c(($) => {
31
+ out[$.key] = $.value;
32
+ });
33
+ return pi.wrapRawDictionary(out);
34
+ };
35
+ exports.$$ = $$;
@@ -0,0 +1,2 @@
1
+ export * from "./api";
2
+ export { $a } from "./implementation.generated";
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
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
+ exports.$a = void 0;
18
+ __exportStar(require("./api"), exports);
19
+ var implementation_generated_1 = require("./implementation.generated");
20
+ Object.defineProperty(exports, "$a", { enumerable: true, get: function () { return implementation_generated_1.$a; } });
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "author": "Corno",
3
+ "license": "ISC",
4
+ "description": "this library provides functions to build arrays and dictionaries by adding entries/elements one by one",
5
+ "dependencies": {
6
+ "glo-pareto-common": "^0.15.0",
7
+ "pareto-core-internals": "^0.13.0"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "http://github.com/corno/res-pareto-build.git"
15
+ },
16
+ "main": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
+ "name": "res-pareto-build",
19
+ "version": "0.0.0",
20
+ "content-fingerprint": "77db4d751e0b86550410aac098fe2022eaa8b62a"
21
+ }