@digipair/skill-editor 0.136.3 → 0.136.4
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.esm.js
CHANGED
|
@@ -23,9 +23,9 @@ lodash.exports;
|
|
|
23
23
|
}
|
|
24
24
|
(function() {
|
|
25
25
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */ var undefined$1;
|
|
26
|
-
/** Used as the semantic version number. */ var VERSION = '4.
|
|
26
|
+
/** Used as the semantic version number. */ var VERSION = '4.17.21';
|
|
27
27
|
/** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200;
|
|
28
|
-
/** Error message constants. */ var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', FUNC_ERROR_TEXT = 'Expected a function', INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`'
|
|
28
|
+
/** Error message constants. */ var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', FUNC_ERROR_TEXT = 'Expected a function', INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
|
|
29
29
|
/** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
30
30
|
/** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500;
|
|
31
31
|
/** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__';
|
|
@@ -1446,10 +1446,6 @@ lodash.exports;
|
|
|
1446
1446
|
* embedded Ruby (ERB) as well as ES2015 template strings. Change the
|
|
1447
1447
|
* following template settings to use alternative delimiters.
|
|
1448
1448
|
*
|
|
1449
|
-
* **Security:** See
|
|
1450
|
-
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md)
|
|
1451
|
-
* — `_.template` is insecure and will be removed in v5.
|
|
1452
|
-
*
|
|
1453
1449
|
* @static
|
|
1454
1450
|
* @memberOf _
|
|
1455
1451
|
* @type {Object}
|
|
@@ -1884,7 +1880,7 @@ lodash.exports;
|
|
|
1884
1880
|
* @name has
|
|
1885
1881
|
* @memberOf SetCache
|
|
1886
1882
|
* @param {*} value The value to search for.
|
|
1887
|
-
* @returns {
|
|
1883
|
+
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
1888
1884
|
*/ function setCacheHas(value) {
|
|
1889
1885
|
return this.__data__.has(value);
|
|
1890
1886
|
}
|
|
@@ -3562,27 +3558,8 @@ lodash.exports;
|
|
|
3562
3558
|
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
|
3563
3559
|
*/ function baseUnset(object, path) {
|
|
3564
3560
|
path = castPath(path, object);
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
// https://github.com/lodash/lodash/security/advisories/GHSA-f23m-r3pf-42rh
|
|
3568
|
-
var index = -1, length = path.length;
|
|
3569
|
-
if (!length) {
|
|
3570
|
-
return true;
|
|
3571
|
-
}
|
|
3572
|
-
while(++index < length){
|
|
3573
|
-
var key = toKey(path[index]);
|
|
3574
|
-
// Always block "__proto__" anywhere in the path if it's not expected
|
|
3575
|
-
if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
|
|
3576
|
-
return false;
|
|
3577
|
-
}
|
|
3578
|
-
// Block constructor/prototype as non-terminal traversal keys to prevent
|
|
3579
|
-
// escaping the object graph into built-in constructors and prototypes.
|
|
3580
|
-
if ((key === 'constructor' || key === 'prototype') && index < length - 1) {
|
|
3581
|
-
return false;
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3584
|
-
var obj = parent(object, path);
|
|
3585
|
-
return obj == null || delete obj[toKey(last(path))];
|
|
3561
|
+
object = parent(object, path);
|
|
3562
|
+
return object == null || delete object[toKey(last(path))];
|
|
3586
3563
|
}
|
|
3587
3564
|
/**
|
|
3588
3565
|
* The base implementation of `_.update`.
|
|
@@ -5679,7 +5656,7 @@ lodash.exports;
|
|
|
5679
5656
|
}
|
|
5680
5657
|
/**
|
|
5681
5658
|
* Creates an array with all falsey values removed. The values `false`, `null`,
|
|
5682
|
-
* `0`,
|
|
5659
|
+
* `0`, `""`, `undefined`, and `NaN` are falsey.
|
|
5683
5660
|
*
|
|
5684
5661
|
* @static
|
|
5685
5662
|
* @memberOf _
|
|
@@ -6167,7 +6144,7 @@ lodash.exports;
|
|
|
6167
6144
|
var index = -1, length = pairs == null ? 0 : pairs.length, _$result = {};
|
|
6168
6145
|
while(++index < length){
|
|
6169
6146
|
var pair = pairs[index];
|
|
6170
|
-
|
|
6147
|
+
_$result[pair[0]] = pair[1];
|
|
6171
6148
|
}
|
|
6172
6149
|
return _$result;
|
|
6173
6150
|
}
|
|
@@ -12284,8 +12261,6 @@ lodash.exports;
|
|
|
12284
12261
|
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
12285
12262
|
* floating-point values which can produce unexpected results.
|
|
12286
12263
|
*
|
|
12287
|
-
* **Note:** If `lower` is greater than `upper`, the values are swapped.
|
|
12288
|
-
*
|
|
12289
12264
|
* @static
|
|
12290
12265
|
* @memberOf _
|
|
12291
12266
|
* @since 0.7.0
|
|
@@ -12299,16 +12274,9 @@ lodash.exports;
|
|
|
12299
12274
|
* _.random(0, 5);
|
|
12300
12275
|
* // => an integer between 0 and 5
|
|
12301
12276
|
*
|
|
12302
|
-
* // when lower is greater than upper the values are swapped
|
|
12303
|
-
* _.random(5, 0);
|
|
12304
|
-
* // => an integer between 0 and 5
|
|
12305
|
-
*
|
|
12306
12277
|
* _.random(5);
|
|
12307
12278
|
* // => also an integer between 0 and 5
|
|
12308
12279
|
*
|
|
12309
|
-
* _.random(-5);
|
|
12310
|
-
* // => an integer between -5 and 0
|
|
12311
|
-
*
|
|
12312
12280
|
* _.random(5, true);
|
|
12313
12281
|
* // => a floating-point number between 0 and 5
|
|
12314
12282
|
*
|
|
@@ -12839,10 +12807,6 @@ lodash.exports;
|
|
|
12839
12807
|
* properties may be accessed as free variables in the template. If a setting
|
|
12840
12808
|
* object is given, it takes precedence over `_.templateSettings` values.
|
|
12841
12809
|
*
|
|
12842
|
-
* **Security:** `_.template` is insecure and should not be used. It will be
|
|
12843
|
-
* removed in Lodash v5. Avoid untrusted input. See
|
|
12844
|
-
* [threat model](https://github.com/lodash/lodash/blob/main/threat-model.md).
|
|
12845
|
-
*
|
|
12846
12810
|
* **Note:** In the development build `_.template` utilizes
|
|
12847
12811
|
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
|
|
12848
12812
|
* for easier debugging.
|
|
@@ -12948,13 +12912,8 @@ lodash.exports;
|
|
|
12948
12912
|
options = undefined$1;
|
|
12949
12913
|
}
|
|
12950
12914
|
string = toString(string);
|
|
12951
|
-
options =
|
|
12952
|
-
var imports =
|
|
12953
|
-
arrayEach(importsKeys, function(key) {
|
|
12954
|
-
if (reForbiddenIdentifierChars.test(key)) {
|
|
12955
|
-
throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
12956
|
-
}
|
|
12957
|
-
});
|
|
12915
|
+
options = assignInWith({}, options, settings, customDefaultsAssignIn);
|
|
12916
|
+
var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
12958
12917
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
12959
12918
|
// Compile the regexp to match each delimiter.
|
|
12960
12919
|
var reDelimiters = _$RegExp((options.escape || reNoMatch).source + '|' + interpolate.source + '|' + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' + (options.evaluate || reNoMatch).source + '|$', 'g');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PinsSettings } from '@digipair/engine';
|
|
2
|
+
export declare const setReasoning: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{}>;
|
|
3
|
+
export declare const reasonings: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string[]>;
|
|
4
|
+
export declare const reasoning: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
5
|
+
export declare const removeReasoning: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{}>;
|
|
6
|
+
export declare const setDigipair: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{}>;
|
|
7
|
+
export declare const digipairs: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string[]>;
|
|
8
|
+
export declare const digipair: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
9
|
+
export declare const removeDigipair: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{}>;
|
|
10
|
+
export declare const addDigipair: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{}>;
|
|
11
|
+
export declare const metadata: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
12
|
+
export declare const setAvatar: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<{}>;
|
|
13
|
+
export declare const templates: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string[]>;
|
|
14
|
+
export declare const schemas: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any[]>;
|
|
15
|
+
export declare const tools: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any[]>;
|
|
16
|
+
//# sourceMappingURL=skill-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-editor.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAwShD,eAAO,MAAM,YAAY,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,gBACnB,CAAC;AAEtE,eAAO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