pareto-core-refiner 0.1.2 → 0.1.3
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/index.d.ts +3 -0
- package/dist/index.js +39 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import * as _pinternals from 'pareto-core-internals';
|
|
2
|
+
import * as _pi from 'pareto-core-interface';
|
|
1
3
|
/**
|
|
2
4
|
* these functions coming from core-internals should be exposed for deserializer development
|
|
3
5
|
*/
|
|
4
6
|
export { block, build_list, build_dictionary, create_iterator, dictionary_literal, list_literal, not_set, set, cc as deprecated_cc, panic as fixme_abort, cc, au, ss, } from "pareto-core-internals";
|
|
7
|
+
export declare const deprecated_build_dictionary: <T>($: ($c: _pinternals.Dictionary_Builder<T>) => void) => _pi.Dictionary<T>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
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
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ss = exports.au = exports.cc = exports.fixme_abort = exports.deprecated_cc = exports.set = exports.not_set = exports.list_literal = exports.dictionary_literal = exports.create_iterator = exports.build_dictionary = exports.build_list = exports.block = void 0;
|
|
26
|
+
exports.deprecated_build_dictionary = exports.ss = exports.au = exports.cc = exports.fixme_abort = exports.deprecated_cc = exports.set = exports.not_set = exports.list_literal = exports.dictionary_literal = exports.create_iterator = exports.build_dictionary = exports.build_list = exports.block = void 0;
|
|
27
|
+
const _pinternals = __importStar(require("pareto-core-internals"));
|
|
4
28
|
/**
|
|
5
29
|
* these functions coming from core-internals should be exposed for deserializer development
|
|
6
30
|
*/
|
|
@@ -18,4 +42,17 @@ Object.defineProperty(exports, "fixme_abort", { enumerable: true, get: function
|
|
|
18
42
|
Object.defineProperty(exports, "cc", { enumerable: true, get: function () { return pareto_core_internals_1.cc; } });
|
|
19
43
|
Object.defineProperty(exports, "au", { enumerable: true, get: function () { return pareto_core_internals_1.au; } });
|
|
20
44
|
Object.defineProperty(exports, "ss", { enumerable: true, get: function () { return pareto_core_internals_1.ss; } });
|
|
21
|
-
|
|
45
|
+
const deprecated_build_dictionary = ($) => {
|
|
46
|
+
const temp = {};
|
|
47
|
+
$({
|
|
48
|
+
'add entry': (key, $) => {
|
|
49
|
+
if (key in temp) {
|
|
50
|
+
_pinternals.panic(`duplicate key in dictionary literal: ${key}`);
|
|
51
|
+
}
|
|
52
|
+
temp[key] = $;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
return _pinternals.dictionary_literal(temp);
|
|
56
|
+
};
|
|
57
|
+
exports.deprecated_build_dictionary = depr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