Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kizahasi/flocon-core

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kizahasi/flocon-core - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

7

dist/cjs/internal/toml.js

@@ -28,2 +28,3 @@ "use strict";

const expression_1 = require("./expression");
const util_1 = require("@kizahasi/util");
const dateTime = new t.Type('DateTime', (obj) => true, (input, context) => {

@@ -77,3 +78,3 @@ if (input == null) {

for (const key of path) {
if (typeof current !== 'object') {
if (current == null || typeof current !== 'object') {
return result_1.Result.ok(undefined);

@@ -104,3 +105,3 @@ }

const exactChatPalette = t.strict({
var: t.UnknownRecord,
var: util_1.maybe(t.UnknownRecord),
// textではなくわざわざ冗長なtext.valueにしたのは、[var]→チャットパレットの文字列 の順で書けるようにするため。

@@ -169,2 +170,2 @@ // また、将来的に例えばtext.typeに何かをセットして…という拡張もできる余地がある。

exports.isValidChatPalette = isValidChatPalette;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9tbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcm5hbC90b21sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxvREFBb0Q7QUFDcEQseUNBQTJCO0FBQzNCLHdDQU1xQjtBQUNyQiw2Q0FBMEM7QUFDMUMsNkNBQThDO0FBRzlDLE1BQU0sUUFBUSxHQUFHLElBQUksQ0FBQyxDQUFDLElBQUksQ0FDdkIsVUFBVSxFQUNWLENBQUMsR0FBRyxFQUF1QixFQUFFLENBQUMsSUFBSSxFQUNsQyxDQUFDLEtBQVUsRUFBRSxPQUFPLEVBQUUsRUFBRTtJQUNwQixJQUFJLEt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IFRvbWxEYXRlVGltZSA9PiB0cnVlLFxyXG4gICAgKGlucHV0OiBhbnksIGNvbnRleHQpID0+IHtcclxuICAgICAgICBpZiAoaW5wdXQgPT0gbnVsbCkge1xyXG4gICAgICAgICAgICByZXR1cm4gdC5mYWlsdXJlKGlucHV0LCBjb250ZXh0KTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKHR5cGVvZiBpbnB1dC50b0pTT04gIT09ICdmdW5jdGlvbicpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHQuZmFpbHVyZShpbnB1dCwgY29udGV4dCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiB0LnN1Y2Nlc3MoaW5wdXQpO1xyXG4gICAgfSxcclxuICAgIHQuaWRlbnRpdHlcclxuKTtcclxuXHJcbmNvbnN0IGVycm9yVG9NZXNzYWdlID0gKHNvdXJjZTogdC5FcnJvcnMpOiBzdHJpbmcgPT4ge1xyXG4gICAgcmV0dXJuIHNvdXJjZVswXT8ubWVzc2FnZSA/PyAn5LiN5piO44Gq44Ko44Op44O844GM55m655Sf44GX44G+44GX44GfJztcclxufTtcclxuXHJcbmNvbnN0IHBhcnNlVG9tbENvcmUgPSAodG9tbDogc3RyaW5nKSA9PiB7XHJcbiAgICBsZXQgb2JqZWN0O1xyXG4gICAgdHJ5IHtcclxuICAgICAgICBvYmplY3QgPSBwYXJzZUNvcmUodG9tbCwgMS4wLCAnXFxyXFxuJywgZmFsc2UpO1xyXG4gICAgfSBjYXRjaCAoZXJyb3IpIHtcclxuICAgICAgICBpZiAodHlwZW9mIGVycm9yID09PSAnc3RyaW5nJykge1xyXG4gICAgICAgICAgICByZXR1cm4gUmVzdWx0LmVycm9yKGVycm9yKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKGVycm9yIGluc3RhbmNlb2YgRXJyb3IpIHtcclxuICAgICAgICAgICAgcmV0dXJuIFJlc3VsdC5lcnJvcihlcnJvci5tZXNzYWdlKTtcclxuICAgICAgICB9X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5lcyA9IGRlY29kZWQucmlnaHQudGV4dC52YWx1ZS5zcGxpdCgvKD86XFxyXFxufFxccnxcXG4pLykubWFwKGxpbmUgPT4ge1xyXG4gICAgICAgIGNvbnN0IGFuYWx5emVSZXN1bHQgPSBhbmFseXplKGxpbmUpO1xyXG4gICAgICAgIGlmIChhbmFseXplUmVzdWx0LmlzRXJyb3IpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGxpbmU7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiBhbmFseXplUmVzdWx0LnZhbHVlXHJcbiAgICAgICAgICAgIC5tYXAoZXhwciA9PiB7XHJcbiAgICAgICAgICAgICAgICBzd2l0Y2ggKGV4cHIudHlwZSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgZXhwcjE6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgcmVwbGFjZWQgPSBnZXRWYXJpYWJsZUZyb21WYXJUb21sT2JqZWN0KGRlY29kZWQucmlnaHQudmFyLCBleHByLnBhdGgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVwbGFjZWQuaXNFcnJvcikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGV4cHIucmF3O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFRPRE86IHJlcGxhY2VkLnZhbHVl44GMc3RyaW5n5Lul5aSW44Gu44Go44GN44Gu5Yem55CG44Gu5LuV5qeY44GM5LuK44Gv5puW5pinXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN3aXRjaCAodHlwZW9mIHJlcGxhY2VkLnZhbHVlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdzdHJpbmcnOlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnbnVtYmVyJzpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ2Jvb2xlYW4nOlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZXBsYWNlZC52YWx1ZS50b1N0cmluZygpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJyc7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDoge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZXhwci50ZXh0O1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgLnJlZHVjZSgoc2VlZCwgZWxlbSkgPT4gc2VlZCArIGVsZW0sICcnKTtcclxuICAgIH0pO1xyXG5cclxuICAgIHJldHVybiBSZXN1bHQub2sobGluZXMpO1xyXG59O1xyXG5cclxuZXhwb3J0IGNvbnN0IGlzVmFsaWRDaGF0UGFsZXR0ZSA9ICh0b21sOiBzdHJpbmcpOiBSZXN1bHQ8dW5kZWZpbmVkPiA9PiB7XHJcbiAgICAvLyBDT05TSURFUjogVE9NTOOBrkRhdGVUaW1l44Gr5pyq5a++5b+cXHJcbiAgICBjb25zdCBvYmplY3QgPSBwYXJzZVRvbWxDb3JlKHRvbWwpO1xyXG4gICAgaWYgKG9iamVjdC5pc0Vycm9yKSB7XHJcbiAgICAgICAgcmV0dXJuIG9iamVjdDtcclxuICAgIH1cclxuICAgIGNvbnN0IGRlY29kZWQgPSBleGFjdENoYXRQYWxldHRlLmRlY29kZShvYmplY3QudmFsdWUpO1xyXG4gICAgaWYgKGRlY29kZWQuX3RhZyA9PT0gJ0xlZnQnKSB7XHJcbiAgICAgICAgcmV0dXJuIFJlc3VsdC5lcnJvcihlcnJvclRvTWVzc2FnZShkZWNvZGVkLmxlZnQpKTtc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gICAgICAgICBzd2l0Y2ggKGV4cHIudHlwZSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGNhc2UgZXhwcjE6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgcmVwbGFjZWQgPSBnZXRWYXJpYWJsZUZyb21WYXJUb21sT2JqZWN0KGRlY29kZWQucmlnaHQudmFyLCBleHByLnBhdGgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVwbGFjZWQuaXNFcnJvcikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGV4cHIucmF3O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIFRPRE86IHJlcGxhY2VkLnZhbHVl44GMc3RyaW5n5Lul5aSW44Gu44Go44GN44Gu5Yem55CG44Gu5LuV5qeY44GM5LuK44Gv5puW5pinXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN3aXRjaCAodHlwZW9mIHJlcGxhY2VkLnZhbHVlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdzdHJpbmcnOlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnbnVtYmVyJzpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ2Jvb2xlYW4nOlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByZXBsYWNlZC52YWx1ZS50b1N0cmluZygpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJyc7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDoge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZXhwci50ZXh0O1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgLnJlZHVjZSgoc2VlZCwgZWxlbSkgPT4gc2VlZCArIGVsZW0sICcnKTtcclxuICAgIH0pO1xyXG5cclxuICAgIHJldHVybiBSZXN1bHQub2sobGluZXMpO1xyXG59O1xyXG5cclxuZXhwb3J0IGNvbnN0IGlzVmFsaWRDaGF0UGFsZXR0ZSA9ICh0b21sOiBzdHJpbmcpOiBSZXN1bHQ8dW5kZWZpbmVkPiA9PiB7XHJcbiAgICAvLyBDT05TSURFUjogVE9NTOOBrkRhdGVUaW1l44Gr5pyq5a++5b+cXHJcbiAgICBjb25zdCBvYmplY3QgPSBwYXJzZVRvbWxDb3JlKHRvbWwpO1xyXG4gICAgaWYgKG9iamVjdC5pc0Vycm9yKSB7XHJcbiAgICAgICAgcmV0dXJuIG9iamVjdDtcclxuICAgIH1cclxuICAgIGNvbnN0IGRlY29kZWQgPSBleGFjdENoYXRQYWxldHRlLmRlY29kZShvYmplY3QudmFsdWUpO1xyXG4gICAgaWYgKGRlY29kZWQuX3RhZyA9PT0gJ0xlZnQnKSB7XHJcbiAgICAgICAgcmV0dXJuIFJlc3VsdC5lcnJvcihlcnJvclRvTWVzc2FnZShkZWNvZGVkLmxlZnQpKTtcclxuICAgIH1cclxuICAgIHJldHVybiBSZXN1bHQub2sodW5kZWZpbmVkKTtcclxufTtcclxuIl19

@@ -6,2 +6,3 @@ /* eslint-disable @typescript-eslint/no-namespace */

import { analyze, expr1 } from './expression';
import { maybe } from '@kizahasi/util';
const dateTime = new t.Type('DateTime', (obj) => true, (input, context) => {

@@ -53,3 +54,3 @@ if (input == null) {

for (const key of path) {
if (typeof current !== 'object') {
if (current == null || typeof current !== 'object') {
return Result.ok(undefined);

@@ -79,3 +80,3 @@ }

const exactChatPalette = t.strict({
var: t.UnknownRecord,
var: maybe(t.UnknownRecord),
// textではなくわざわざ冗長なtext.valueにしたのは、[var]→チャットパレットの文字列 の順で書けるようにするため。

@@ -142,2 +143,2 @@ // また、将来的に例えばtext.typeに何かをセットして…という拡張もできる余地がある。

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9tbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcm5hbC90b21sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9EQUFvRDtBQUNwRCxPQUFPLEtBQUssQ0FBQyxNQUFNLE9BQU8sQ0FBQztBQUMzQixPQUFPLEVBQ0gsS0FBSyxJQUFJLFNBQVMsR0FLckIsTUFBTSxhQUFhLENBQUM7QUFDckIsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQzFDLE9BQU8sRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRzlDLE1BQU0sUUFBUSxHQUFHLElBQUksQ0FBQyxDQUFDLElBQUksQ0FDdkIsVUFBVSxFQUNWLENBQUMsR0FBRyxFQUF1QixFQUFFLENBQUMsSUFBSSxFQUNsQyxDQUFDLEtBQVUsRUFBRSxPQUFPLEVBQUUsRUFBRTtJQUNwQixJQUFJLEtBQUssSUFBSSxJQUFJLEVBQUU7UUFDZixPQUFPLENBQUMsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0tBQ3BDO0lBQ0QsSUFBSSxPQUFPLEtBQUssQ0FBQyxNQUFNLEtBQUssVUFBVSxFQUFFO1FBQ3BDLE9BQU8sQ0FBQyxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUM7S0FDcEM7SUFDRCxPQUFPLENBQUMsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7QUFDNUIsQ0FBQyxFQUNELENBQUMsQ0FBQyxRQ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VlLnJpZ2h0KTtcclxuICAgIH1cclxuICAgIHN3aXRjaCAodHlwZW9mIGN1cnJlbnQpIHtcclxuICAgICAgICBjYXNlICdib29sZWFuJzpcclxuICAgICAgICBjYXNlICdudW1iZXInOlxyXG4gICAgICAgIGNhc2UgJ3N0cmluZyc6XHJcbiAgICAgICAgY2FzZSAndW5kZWZpbmVkJzpcclxuICAgICAgICAgICAgcmV0dXJuIFJlc3VsdC5vayhjdXJyZW50KTtcclxuICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICByZXR1cm4gUmVzdWx0Lm9rKHVuZGVmaW5lZCk7XHJcbiAgICB9XHJcbn07XHJcblxyXG5jb25zdCBleGFjdENoYXRQYWxldHRlID0gdC5zdHJpY3Qoe1xyXG4gICAgdmFyOiB0LlVua25vd25SZWNvcmQsXHJcblxyXG4gICAgLy8gdGV4dOOBp+OBr+OBquOBj+OCj+OBluOCj+OBluWGl+mVt+OBqnRleHQudmFsdWXjgavjgZfjgZ/jga7jga/jgIFbdmFyXeKGkuODgeODo+ODg+ODiOODkeODrOODg+ODiOOBruaWh+Wtl+WIlyDjga7poIbjgafmm7jjgZHjgovjgojjgYbjgavjgZnjgovjgZ/jgoHjgIJcclxuICAgIC8vIOOBvuOBn+OAgeWwhuadpeeahOOBq+S+i+OBiOOBsHRleHQudHlwZeOBq+S9leOBi+OCkuOCu+ODg+ODiOOBl+OBpuKApuOBqOOBhOOBhuaLoeW8teOCguOBp+OBjeOCi+S9meWcsOOBjOOBguOCi+OAglxyXG4gICAgdGV4dDogdC5zdHJpY3Qoe1xyXG4gICAgICAgIHZhbHVlOiB0LnN0cmluZyxcclxuICAgIH0pLFxyXG59KTtcclxuXHJcbi8vIHRleHQudmFsdWXjgavkvovjgYjjgbAge2Zvb30g44Gu44KI44GG44Gq5paH5a2X5YiX44GM5ZCr44G+44KM44Gm44GE44KL5aC05ZCI44CBdmFy44Gn5a6a576p44GV44KM44Gm44GE44KM44Gw44Gd44KM44Gr572u44GN5o+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ICAgICAgICAgICAgICAgICAgIGNvbnN0IHJlcGxhY2VkID0gZ2V0VmFyaWFibGVGcm9tVmFyVG9tbE9iamVjdChkZWNvZGVkLnJpZ2h0LnZhciwgZXhwci5wYXRoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlcGxhY2VkLmlzRXJyb3IpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBleHByLnJhdztcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBUT0RPOiByZXBsYWNlZC52YWx1ZeOBjHN0cmluZ+S7peWkluOBruOBqOOBjeOBruWHpueQhuOBruS7leanmOOBjOS7iuOBr+abluaYp1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBzd2l0Y2ggKHR5cGVvZiByZXBsYWNlZC52YWx1ZSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnc3RyaW5nJzpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ251bWJlcic6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdib29sZWFuJzpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVwbGFjZWQudmFsdWUudG9TdHJpbmcoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICcnO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGV4cHIudGV4dDtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgIC5yZWR1Y2UoKH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AgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgIHJldHVybiBSZXN1bHQub2sodW5kZWZpbmVkKTtcclxuICAgIH1cclxufTtcclxuXHJcbmNvbnN0IGV4YWN0Q2hhdFBhbGV0dGUgPSB0LnN0cmljdCh7XHJcbiAgICB2YXI6IG1heWJlKHQuVW5rbm93blJlY29yZCksXHJcblxyXG4gICAgLy8gdGV4dOOBp+OBr+OBquOBj+OCj+OBluOCj+OBluWGl+mVt+OBqnRleHQudmFsdWXjgavjgZfjgZ/jga7jga/jgIFbdmFyXeKGkuODgeODo+ODg+ODiOODkeODrOODg+ODiOOBruaWh+Wtl+WIlyDjga7poIbjgafmm7jjgZHjgovjgojjgYbjgavjgZnjgovjgZ/jgoHjgIJcclxuICAgIC8vIOOBvuOBn+OAgeWwhuadpeeahOOBq+S+i+OBiOOBsHRleHQudHlwZeOBq+S9leOBi+OCkuOCu+ODg+ODiOOBl+OBpuKApuOBqOOBhOOBhuaLoeW8teOCguOBp+OBjeOCi+S9meWcsOOBjOOBguOCi+OAglxyXG4gICAgdGV4dDogdC5zdHJpY3Qoe1xyXG4gICAgICAgIHZhbHVlOiB0LnN0cmluZyxcclxuICAgIH0pLFxyXG59KTtcclxuXHJcbi8vIHRleHQudmFsdWXjgavkvovjgYjjgbAge2Zvb30g44Gu44KI44GG44Gq5paH5a2X5YiX44GM5ZCr44G+44KM44Gm44GE44KL5aC05ZCI44CBdmFy44Gn5a6a576p44GV44KM44Gm44GE44KM44Gw44Gd44KM44Gr572u44GN5o+b44GI44KL44CC5a6a576p44GM6KaL44Gk44GL44KJ44Gq44GR44KM44Gw44Gd44Gu44G+44G+5q6L44GZ44CCXHJcbmV4cG9ydCBjb25zdCBnZW5lcmF0ZUNoYXRQYWxldHRlID0gKHRvbWw6IHN0cmluZyk6IFJlc3VsdDxzdHJpbmdbXT4gPT4ge1xyXG4gICAgLy8gQ09OU0lERVI6IFRPTUzjga5EYXRlVGltZeOBq+acquWvvuW/nFxyXG4gICAgY29uc3Qgb2JqZWN0ID0gcGFyc2VUb21sQ29yZSh0b21sKTtcclxuICAgIGlmIChvYmplY3QuaXNFcnJvcikge1xyXG4gICAgICAgIHJldHVybiBvYmplY3Q7XHJcbiAgICB9XHJcbiAgICBjb25zdCBkZWNvZGVkID0gZXhhY3RDaGF0UGFsZXR0ZS5kZWNvZGUob2JqZWN0LnZhbHVlKTtcclxuICAgIGlmIChkZWNvZGVkLl90YWcgPT09ICdMZWZ0Jykge1xyXG4gICAgICAgIHJldHVybiBSZXN1bHQuZXJyb3IoZXJyb3JUb01lc3NhZ2UoZGVjb2RlZC5sZWZ0KSk7XHJcbiAgICB9XHJcblxyXG4gICAgY29uc3QgbGluZXMgPSBkZWNvZGVkLnJpZ2h0LnRleHQudmFsdWUuc3BsaXQoLyg/OlxcclxcbnxcXHJ8XFxuKS8pLm1hcChsaW5lID0+IHtcclxuICAgICAgICBjb25zdCBhbmFseXplUmVzdWx0ID0gYW5hbHl6ZShsaW5lKTtcclxuICAgICAgICBpZiAoYW5hbHl6ZVJlc3VsdC5pc0Vycm9yKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBsaW5lO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gYW5hbHl6ZVJlc3VsdC52YWx1ZVxyXG4gICAgICAgICAgICAubWFwKGV4cHIgPT4ge1xyXG4gICAgICAgICAgICAgICAgc3dpdGNoIChleHByLnR5cGUpIHtcclxuICAgICAgICAgICAgICAgICAgICBjYXNlIGV4cHIxOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHJlcGxhY2VkID0gZ2V0VmFyaWFibGVGcm9tVmFyVG9tbE9iamVjdChkZWNvZGVkLnJpZ2h0LnZhciwgZXhwci5wYXRoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlcGxhY2VkLmlzRXJyb3IpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBleHByLnJhdztcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBUT0RPOiByZXBsYWNlZC52YWx1ZeOBjHN0cmluZ+S7peWkluOBruOBqOOBjeOBruWHpueQhuOBruS7leanmOOBjOS7iuOBr+abluaYp1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBzd2l0Y2ggKHR5cGVvZiByZXBsYWNlZC52YWx1ZSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAnc3RyaW5nJzpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgJ251bWJlcic6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXNlICdib29sZWFuJzpcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVwbGFjZWQudmFsdWUudG9TdHJpbmcoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICcnO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGV4cHIudGV4dDtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgIC5yZWR1Y2UoKHNlZWQsIGVsZW0pID0+IHNlZWQgKyBlbGVtLCAnJyk7XHJcbiAgICB9KTtcclxuXHJcbiAgICByZXR1cm4gUmVzdWx0Lm9rKGxpbmVzKTtcclxufTtcclxuXHJcbmV4cG9ydCBjb25zdCBpc1ZhbGlkQ2hhdFBhbGV0dGUgPSAodG9tbDogc3RyaW5nKTogUmVzdWx0PHVuZGVmaW5lZD4gPT4ge1xyXG4gICAgLy8gQ09OU0lERVI6IFRPTUzjga5EYXRlVGltZeOBq+acquWvvuW/nFxyXG4gICAgY29uc3Qgb2JqZWN0ID0gcGFyc2VUb21sQ29yZSh0b21sKTtcclxuICAgIGlmIChvYmplY3QuaXNFcnJvcikge1xyXG4gICAgICAgIHJldHVybiBvYmplY3Q7XHJcbiAgICB9XHJcbiAgICBjb25zdCBkZWNvZGVkID0gZXhhY3RDaGF0UGFsZXR0ZS5kZWNvZGUob2JqZWN0LnZhbHVlKTtcclxuICAgIGlmIChkZWNvZGVkLl90YWcgPT09ICdMZWZ0Jykge1xyXG4gICAgICAgIHJldHVybiBSZXN1bHQuZXJyb3IoZXJyb3JUb01lc3NhZ2UoZGVjb2RlZC5sZWZ0KSk7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gUmVzdWx0Lm9rKHVuZGVmaW5lZCk7XHJcbn07XHJcbiJdfQ==
{
"version": "0.14.0",
"version": "0.14.1",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc