res-pareto-build 0.4.0 → 0.5.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,9 @@
1
+ import * as g_this from "./glossary";
2
+ export type buildArray = g_this.F.BuildArray;
3
+ export type buildDictionary = g_this.F.BuildDictionary;
4
+ export type unsafeBuildDictionary = g_this.F.UnsafeBuildDictionary;
5
+ export type API = {
6
+ buildArray: buildArray;
7
+ buildDictionary: buildDictionary;
8
+ unsafeBuildDictionary: unsafeBuildDictionary;
9
+ };
@@ -0,0 +1,13 @@
1
+ import { T } from './types.generated';
2
+ import * as g_common from "glo-pareto-common";
3
+ export declare namespace I { }
4
+ export declare namespace B {
5
+ type Add<GType> = ($: T.KeyValuePair<GType>) => void;
6
+ type OnDuplicate<GType> = ($: g_common.T.String) => void;
7
+ type Push<GType> = ($: T.Type<GType>) => void;
8
+ }
9
+ export declare namespace F {
10
+ type BuildArray = <GType>($: g_common.T.Null, $c: ($b: B.Push<GType>) => void) => T.Array<GType>;
11
+ type BuildDictionary = <GType>($: T.DictionaryBuildStrategy<GType>, $c: ($b: B.Add<GType>) => void, $b: B.OnDuplicate<GType>) => T.Dictionary<GType>;
12
+ type UnsafeBuildDictionary = <GType>($: g_common.T.Null, $c: ($b: B.Add<GType>) => void) => T.Dictionary<GType>;
13
+ }
@@ -0,0 +1,27 @@
1
+ import * as pt from 'pareto-core-types';
2
+ export declare namespace T {
3
+ namespace Array {
4
+ type T<GType> = GType;
5
+ }
6
+ type Array<GType> = pt.Array<GType>;
7
+ namespace Dictionary {
8
+ type D<GType> = GType;
9
+ }
10
+ type Dictionary<GType> = pt.Dictionary<GType>;
11
+ namespace DictionaryBuildStrategy {
12
+ namespace ignore { }
13
+ type ignore<GType> = null;
14
+ namespace overwrite { }
15
+ type overwrite<GType> = null;
16
+ }
17
+ type DictionaryBuildStrategy<GType> = ['ignore', null] | ['overwrite', null];
18
+ namespace KeyValuePair {
19
+ type key<GType> = string;
20
+ type value<GType> = GType;
21
+ }
22
+ type KeyValuePair<GType> = {
23
+ readonly 'key': string;
24
+ readonly 'value': GType;
25
+ };
26
+ type Type<GType> = GType;
27
+ }
@@ -1,2 +1,2 @@
1
- import { API } from "./api";
2
- export declare const $a: API;
1
+ import { API } from "./definition/api.generated";
2
+ export declare const $r: API;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$a = void 0;
3
+ exports.$r = void 0;
4
4
  const buildArray_native_1 = require("./implementations/buildArray.native");
5
5
  const buildDictionary_native_1 = require("./implementations/buildDictionary.native");
6
6
  const unsafeBuildDictionary_native_1 = require("./implementations/unsafeBuildDictionary.native");
7
- exports.$a = {
7
+ exports.$r = {
8
8
  'buildArray': buildArray_native_1.$$,
9
9
  'buildDictionary': buildDictionary_native_1.$$,
10
10
  'unsafeBuildDictionary': unsafeBuildDictionary_native_1.$$,
@@ -1,2 +1,2 @@
1
- import { CbuildArray } from "../api";
2
- export declare const $$: CbuildArray;
1
+ import { buildArray } from "../definition/api.generated";
2
+ export declare const $$: buildArray;
@@ -1,2 +1,2 @@
1
- import { CbuildDictionary } from "../api";
2
- export declare const $$: CbuildDictionary;
1
+ import { buildDictionary } from "../definition/api.generated";
2
+ export declare const $$: buildDictionary;
@@ -1,2 +1,2 @@
1
- import { CunsafeBuildDictionary } from "../api";
2
- export declare const $$: CunsafeBuildDictionary;
1
+ import { unsafeBuildDictionary } from "../definition/api.generated";
2
+ export declare const $$: unsafeBuildDictionary;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export * from "./api";
2
- export { $a } from "./implementation.generated";
1
+ export * from "./definition/api.generated";
2
+ export * from "./definition/glossary";
3
+ export { $r } from "./implementation.generated";
package/dist/index.js CHANGED
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.$a = void 0;
18
- __exportStar(require("./api"), exports);
17
+ exports.$r = void 0;
18
+ __exportStar(require("./definition/api.generated"), exports);
19
+ __exportStar(require("./definition/glossary"), exports);
19
20
  var implementation_generated_1 = require("./implementation.generated");
20
- Object.defineProperty(exports, "$a", { enumerable: true, get: function () { return implementation_generated_1.$a; } });
21
+ Object.defineProperty(exports, "$r", { enumerable: true, get: function () { return implementation_generated_1.$r; } });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "TBD",
4
4
  "description": "this library provides functions to build arrays and dictionaries by adding entries/elements one by one",
5
5
  "dependencies": {
6
- "glo-pareto-common": "^0.15.0",
6
+ "glo-pareto-common": "^0.17.0",
7
7
  "pareto-core-internals": "^0.13.0"
8
8
  },
9
9
  "files": [
@@ -16,6 +16,6 @@
16
16
  "main": "dist/index.js",
17
17
  "types": "dist/index.d.ts",
18
18
  "name": "res-pareto-build",
19
- "version": "0.4.0",
20
- "content-fingerprint": "81d81ba477e59f56ff2bfe4a5304d64592ec6dc0"
19
+ "version": "0.5.0",
20
+ "content-fingerprint": "d9cc941bb053ebfd44b77e1f6e0e35f4e50fa94f"
21
21
  }
@@ -1,9 +0,0 @@
1
- import * as gglo from "./glossary";
2
- export type CbuildArray = gglo.FBuildArray;
3
- export type CbuildDictionary = gglo.FBuildDictionary;
4
- export type CunsafeBuildDictionary = gglo.FUnsafeBuildDictionary;
5
- export type API = {
6
- buildArray: CbuildArray;
7
- buildDictionary: CbuildDictionary;
8
- unsafeBuildDictionary: CunsafeBuildDictionary;
9
- };
@@ -1,8 +0,0 @@
1
- import { T } from './types.generated';
2
- import * as gcommon from "glo-pareto-common";
3
- export type IAdd<GPType> = ($: T.KeyValuePair<GPType>) => void;
4
- export type IOnDuplicate<GPType> = ($: gcommon.T.String) => void;
5
- export type IPush<GPType> = ($: T.Type<GPType>) => void;
6
- export type FBuildArray = <GPType>($: gcommon.T.Null, $c: ($i: IPush<GPType>) => void) => T.Array<GPType>;
7
- export type FBuildDictionary = <GPType>($: T.DictionaryBuildStrategy<GPType>, $c: ($i: IAdd<GPType>) => void, $i: IOnDuplicate<GPType>) => T.Dictionary<GPType>;
8
- export type FUnsafeBuildDictionary = <GPType>($: gcommon.T.Null, $c: ($i: IAdd<GPType>) => void) => T.Dictionary<GPType>;
@@ -1,27 +0,0 @@
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 DictionaryBuildStrategy {
12
- namespace ignore { }
13
- type ignore<GPType> = {};
14
- namespace overwrite { }
15
- type overwrite<GPType> = {};
16
- }
17
- type DictionaryBuildStrategy<GPType> = ['ignore', {}] | ['overwrite', {}];
18
- namespace KeyValuePair {
19
- type key<GPType> = string;
20
- type value<GPType> = GPType;
21
- }
22
- type KeyValuePair<GPType> = {
23
- readonly 'key': string;
24
- readonly 'value': GPType;
25
- };
26
- type Type<GPType> = GPType;
27
- }
@@ -1,2 +0,0 @@
1
- export * from "./glossary";
2
- export * from "./api.generated";
package/dist/api/index.js DELETED
@@ -1,18 +0,0 @@
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);
File without changes
File without changes
File without changes