res-pareto-build 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ export declare namespace A {
10
10
  type buildUnsafeDictionary = () => g_this.SYNC.A.F.BuildUnsafeDictionary;
11
11
  type createArrayBuilder = () => g_this.ASYNC.A.C.CreateArrayBuilder;
12
12
  type createSafeDictionaryBuilder = ($: g_this.T.DictionaryBuildStrategy) => g_this.ASYNC.A.C.CreateSafeDictionaryBuilder;
13
+ type createStringBuilder = ($: g_common.T.String) => g_this.ASYNC.A.C.CreateStringBuilder;
13
14
  type createUnsafeDictionaryBuilder = () => g_this.ASYNC.A.C.CreateUnsafeDictionaryBuilder;
14
15
  }
15
16
  export type API = {
@@ -18,5 +19,6 @@ export type API = {
18
19
  readonly 'buildUnsafeDictionary': A.buildUnsafeDictionary;
19
20
  readonly 'createArrayBuilder': A.createArrayBuilder;
20
21
  readonly 'createSafeDictionaryBuilder': A.createSafeDictionaryBuilder;
22
+ readonly 'createStringBuilder': A.createStringBuilder;
21
23
  readonly 'createUnsafeDictionaryBuilder': A.createUnsafeDictionaryBuilder;
22
24
  };
@@ -16,6 +16,11 @@ export declare namespace ASYNC {
16
16
  'data': ($: T.KeyValuePair<TType>) => void;
17
17
  'end': ($: TEndType) => void;
18
18
  };
19
+ type StringConsumer<TEndType> = ($: T.String<TEndType>) => void;
20
+ type StringStreamConsumer<TEndType> = {
21
+ 'data': ($: g_common.T.String) => void;
22
+ 'end': ($: TEndType) => void;
23
+ };
19
24
  }
20
25
  namespace A {
21
26
  namespace C {
@@ -33,6 +38,13 @@ export declare namespace ASYNC {
33
38
  }) => ASYNC.I.Entries<TEndType, TType>;
34
39
  };
35
40
  }
41
+ namespace C {
42
+ type CreateStringBuilder = {
43
+ 'construct': <TEndType>($is: {
44
+ readonly 'handler': ASYNC.I.StringConsumer<TEndType>;
45
+ }) => ASYNC.I.StringStreamConsumer<TEndType>;
46
+ };
47
+ }
36
48
  namespace C {
37
49
  type CreateUnsafeDictionaryBuilder = {
38
50
  'construct': <TEndType, TType>($is: {
@@ -32,4 +32,12 @@ export declare namespace T {
32
32
  readonly 'key': string;
33
33
  readonly 'value': TType;
34
34
  };
35
+ namespace String {
36
+ type end<TEndType> = TEndType;
37
+ type _lstring<TEndType> = string;
38
+ }
39
+ type String<TEndType> = {
40
+ readonly 'end': TEndType;
41
+ readonly 'string': string;
42
+ };
35
43
  }
@@ -1,2 +1,2 @@
1
1
  import { API } from "./api.generated";
2
- export declare const $r: API;
2
+ export declare const $api: API;
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.$r = void 0;
3
+ exports.$api = void 0;
4
4
  const buildArray_native_1 = require("./implementations/buildArray.native");
5
5
  const buildSafeDictionary_native_1 = require("./implementations/buildSafeDictionary.native");
6
6
  const buildUnsafeDictionary_native_1 = require("./implementations/buildUnsafeDictionary.native");
7
7
  const createArrayBuilder_native_1 = require("./implementations/createArrayBuilder.native");
8
8
  const createSafeDictionaryBuilder_native_1 = require("./implementations/createSafeDictionaryBuilder.native");
9
+ const createStringBuilder_native_1 = require("./implementations/createStringBuilder.native");
9
10
  const createUnsafeDictionaryBuilder_native_1 = require("./implementations/createUnsafeDictionaryBuilder.native");
10
- exports.$r = {
11
+ exports.$api = {
11
12
  'buildArray': buildArray_native_1.$$,
12
13
  'buildSafeDictionary': buildSafeDictionary_native_1.$$,
13
14
  'buildUnsafeDictionary': buildUnsafeDictionary_native_1.$$,
14
15
  'createArrayBuilder': createArrayBuilder_native_1.$$,
15
16
  'createSafeDictionaryBuilder': createSafeDictionaryBuilder_native_1.$$,
17
+ 'createStringBuilder': createStringBuilder_native_1.$$,
16
18
  'createUnsafeDictionaryBuilder': createUnsafeDictionaryBuilder_native_1.$$,
17
19
  };
@@ -0,0 +1,2 @@
1
+ import { A } from "../api.generated";
2
+ export declare const $$: A.createStringBuilder;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.$$ = void 0;
4
+ const $$ = ($c) => {
5
+ return {
6
+ 'construct': ($is) => {
7
+ let temp = $c;
8
+ return {
9
+ 'data': ($) => {
10
+ temp += $;
11
+ },
12
+ 'end': ($) => {
13
+ $is.handler({
14
+ 'string': temp,
15
+ 'end': $,
16
+ });
17
+ }
18
+ };
19
+ }
20
+ };
21
+ };
22
+ exports.$$ = $$;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "./api.generated";
2
2
  export * from "./glossary";
3
- export { $r } from "./implementation.generated";
3
+ export { $api as $r } from "./implementation.generated";
package/dist/index.js CHANGED
@@ -18,4 +18,4 @@ exports.$r = void 0;
18
18
  __exportStar(require("./api.generated"), exports);
19
19
  __exportStar(require("./glossary"), exports);
20
20
  var implementation_generated_1 = require("./implementation.generated");
21
- Object.defineProperty(exports, "$r", { enumerable: true, get: function () { return implementation_generated_1.$r; } });
21
+ Object.defineProperty(exports, "$r", { enumerable: true, get: function () { return implementation_generated_1.$api; } });
package/package.json CHANGED
@@ -3,8 +3,8 @@
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.28.0",
7
- "pareto-core-internals": "^0.13.4"
6
+ "glo-pareto-common": "^0.31.0",
7
+ "pareto-core-internals": "^0.19.0"
8
8
  },
9
9
  "files": [
10
10
  "dist"
@@ -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.11.0",
20
- "content-fingerprint": "12ff37e1a36c0f336eedf4891c3d4e189f76cca7"
19
+ "version": "0.13.0",
20
+ "content-fingerprint": "064ceb84865f266776fdc41edf6a73d2b543c29f"
21
21
  }