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.
- package/dist/api/api.generated.d.ts +7 -0
- package/dist/api/api.generated.js +2 -0
- package/dist/api/glossary/index.d.ts +2 -0
- package/dist/api/glossary/index.js +18 -0
- package/dist/api/glossary/public.generated.d.ts +6 -0
- package/dist/api/glossary/public.generated.js +2 -0
- package/dist/api/glossary/types.generated.d.ts +20 -0
- package/dist/api/glossary/types.generated.js +2 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +18 -0
- package/dist/implementation.generated.d.ts +2 -0
- package/dist/implementation.generated.js +9 -0
- package/dist/implementations/buildArray.native.d.ts +2 -0
- package/dist/implementations/buildArray.native.js +35 -0
- package/dist/implementations/buildDictionary.native.d.ts +2 -0
- package/dist/implementations/buildDictionary.native.js +35 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/package.json +21 -0
@@ -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,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,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,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,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,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.$$ = $$;
|
package/dist/index.d.ts
ADDED
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
|
+
}
|