@kizahasi/flocon-script
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -33,2 +33,2 @@ "use strict"; | ||
exports.arrayClass = new SArrayClass(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxnREFBOEY7QUFDOUYsNkNBQTBDO0FBQzFDLDBCQUFpQztBQUVqQyxNQUFNLFdBQVksU0FBUSx1QkFBUztJQUMvQjtRQUNJLEtBQUssQ0FDRCxHQUFHLEVBQUU7WUFDRCxNQUFNLElBQUksS0FBSyxDQUFDLG9DQUFvQyxDQUFDLENBQUM7UUFDMUQsQ0FBQyxFQUNELFNBQVMsRUFDVCxLQUFLLENBQ1IsQ0FBQztJQUNOLENBQUM7SUFFTyxNQUFNLENBQUMsbUJBQW1CLENBQUMsS0FBYyxFQUFFLE9BQTRCO1FBQzNFLElBQUksS0FBSyxFQUFFO1lBQ1AsTUFBTSxlQUFXLENBQUMsbUJBQW1CLENBQUMsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLEtBQUssQ0FBQyxDQUFDO1NBQ3pEO0lBQ0wsQ0FBQztJQUVNLFNBQVMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQW1CO1FBQzlDLFFBQVEsR0FBRyxFQUFFO1lBQ1QsS0FBSyxTQUFTLENBQUMsQ0FBQztnQkFDWixPQUFPLGVBQU0sQ0FBQyxJQUFJLENBQ2QsSUFBSSx1QkFBUyxDQUNULENBQUMsRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLEVBQUUsRUFBRTtvQkFDaEIsV0FBVyxDQUFDLG1CQUFtQixDQUFDLEtBQUssRUFBRSxPQUFPLENBQUMsQ0FBQztvQkFDaEQsTUFBTSx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ZXc6IGJvb2xlYW4sIGFzdEluZm86IEFzdEluZm8gfCB1bmRlZmluZWQpOiB2b2lkIHtcclxuICAgICAgICBpZiAoaXNOZXcpIHtcclxuICAgICAgICAgICAgdGhyb3cgU2NyaXB0RXJyb3Iubm90Q29uc3RydWN0b3JFcnJvcihhc3RJbmZvPy5yYW5nZSk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBvbkdldHRpbmcoeyBrZXksIGFzdEluZm8gfTogT25HZXR0aW5nUGFyYW1zKTogT3B0aW9uPEZWYWx1ZT4ge1xyXG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XHJcbiAgICAgICAgICAgIGNhc2UgJ2lzQXJyYXknOiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLnNvbWUoXHJcbiAgICAgICAgICAgICAgICAgICAgbmV3IEZGdW5jdGlvbihcclxuICAgICAgICAgICAgICAgICAgICAgICAgKHsgYXJncywgaXNOZXcgfSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgU0FycmF5Q2xhc3MucHJlcGFyZVN0YXRpY01ldGhvZChpc05ldywgYXN0SW5mbyk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBhcmcgPSBhcmdzWzBdO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGQm9vbGVhbihhcmc/LnR5cGUgPT09IEZUeXBlLkFycmF5KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgZmFsc2VcclxuICAgICAgICAgICAgICAgICAgICApXHJcbiAgICAgICAgICAgICAgICApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLm5vbmUoKTtcclxuICAgICAg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0aG9kKGlzTmV3OiBib29sZWFuLCBhc3RJbmZvOiBBc3RJbmZvIHwgdW5kZWZpbmVkKTogdm9pZCB7XHJcbiAgICAgICAgaWYgKGlzTmV3KSB7XHJcbiAgICAgICAgICAgIHRocm93IFNjcmlwdEVycm9yLm5vdENvbnN0cnVjdG9yRXJyb3IoYXN0SW5mbz8ucmFuZ2UpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgb25HZXR0aW5nKHsga2V5LCBhc3RJbmZvIH06IEdldENvcmVQYXJhbXMpOiBPcHRpb248RlZhbHVlPiB7XHJcbiAgICAgICAgc3dpdGNoIChrZXkpIHtcclxuICAgICAgICAgICAgY2FzZSAnaXNBcnJheSc6IHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBPcHRpb24uc29tZShcclxuICAgICAgICAgICAgICAgICAgICBuZXcgRkZ1bmN0aW9uKFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAoeyBhcmdzLCBpc05ldyB9KSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBTQXJyYXlDbGFzcy5wcmVwYXJlU3RhdGljTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGFyZyA9IGFyZ3NbMF07XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZCb29sZWFuKGFyZz8udHlwZSA9PT0gRlR5cGUuQXJyYXkpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmYWxzZVxyXG4gICAgICAgICAgICAgICAgICAgIClcclxuICAgICAgICAgICAgICAgICk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgIHJldHVybiBPcHRpb24ubm9uZSgpO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG5cclxuZXhwb3J0IGNvbnN0IGFycmF5Q2xhc3MgPSBuZXcgU0FycmF5Q2xhc3MoKTtcclxuIl19 |
@@ -23,2 +23,2 @@ "use strict"; | ||
Object.defineProperty(exports, "ScriptError", { enumerable: true, get: function () { return ScriptError_1.ScriptError; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQW9DO0FBQTNCLDRGQUFBLElBQUksT0FBQTtBQUFFLDRGQUFBLElBQUksT0FBQTtBQUNuQix5Q0FBNkM7QUFBcEMsbUdBQUEsVUFBVSxPQUFBO0FBQ25CLDZDQWlCdUI7QUFoQm5CLDJHQUFBLFlBQVksT0FBQTtBQUNaLHdHQUFBLFNBQVMsT0FBQTtBQUNULHlHQUFBLFVBQVUsT0FBQTtBQUNWLHFHQUFBLE1BQU0sT0FBQTtBQUNOLHVHQUFBLFFBQVEsT0FBQTtBQUNSLHdHQUFBLFNBQVMsT0FBQTtBQUNULHNHQUFBLE9BQU8sT0FBQTtBQUNQLHNHQUFBLE9BQU8sT0FBQTtBQUNQLHNHQUFBLE9BQU8sT0FBQTtBQUNQLHNHQUFBLE9BQU8sT0FBQTtBQUVQLG9HQUFBLEtBQUssT0FBQTtBQU1ULDZDQUE0QztBQUFuQywwR0FBQSxXQUFXLE9BQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBleGVjLCB0ZXN0IH0gZnJvbSAnLi9tYWluJztcclxuZXhwb3J0IHsgYXJyYXlDbGFzcyB9IGZyb20gJy4vYnVpbHRJbi9BcnJheSc7XHJcbmV4cG9ydCB7XHJcbiAgICBjcmVhdGVGVmFsdWUsXHJcbiAgICBiZWdpbkNhc3QsXHJc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E0QztBQUFuQywwR0FBQSxXQUFXLE9BQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBleGVjLCB0ZXN0IH0gZnJvbSAnLi9tYWluJztcclxuZXhwb3J0IHsgYXJyYXlDbGFzcyB9IGZyb20gJy4vYnVpbHRJbi9BcnJheSc7XHJcbmV4cG9ydCB7XHJcbiAgICBjcmVhdGVGVmFsdWUsXHJcbiAgICBiZWdpbkNhc3QsXHJcbiAgICB0b1R5cGVOYW1lLFxyXG4gICAgRkFycmF5LFxyXG4gICAgRkJvb2xlYW4sXHJcbiAgICBGRnVuY3Rpb24sXHJcbiAgICBGTnVtYmVyLFxyXG4gICAgRk9iamVjdCxcclxuICAgIEZSZWNvcmQsXHJcbiAgICBGU3RyaW5nLFxyXG4gICAgRlZhbHVlLFxyXG4gICAgRlR5cGUsXHJcbiAgICBHZXRQYXJhbXMsXHJcbiAgICBTZXRQYXJhbXMsXHJcbiAgICBPbkdldHRpbmdQYXJhbXMsXHJcbiAgICBPblNldHRpbmdQYXJhbXMsXHJcbiAgICBHZXRDb3JlUGFyYW1zLFxyXG4gICAgU2V0Q29yZVBhcmFtcyxcclxufSBmcm9tICcuL3NjcmlwdFZhbHVlJztcclxuZXhwb3J0IHsgU2NyaXB0RXJyb3IgfSBmcm9tICcuL1NjcmlwdEVycm9yJztcclxuIl19 |
@@ -30,2 +30,2 @@ import { FBoolean, FFunction, FType } from '../scriptValue'; | ||
export const arrayClass = new SArrayClass(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQVcsUUFBUSxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQTJCLE1BQU0sZ0JBQWdCLENBQUM7QUFDOUYsT0FB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1cclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgb25HZXR0aW5nKHsga2V5LCBhc3RJbmZvIH06IE9uR2V0dGluZ1BhcmFtcyk6IE9wdGlvbjxGVmFsdWU+IHtcclxuICAgICAgICBzd2l0Y2ggKGtleSkge1xyXG4gICAgICAgICAgICBjYXNlICdpc0FycmF5Jzoge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIE9wdGlvbi5zb21lKFxyXG4gICAgICAgICAgICAgICAgICAgIG5ldyBGRnVuY3Rpb24oXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNBcnJheUNsYXNzLnByZXBhcmVTdGF0aWNNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYXJnID0gYXJnc1swXTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkJvb2xlYW4oYXJnPy50eXBlID09PSBGVHlwZS5BcnJheSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZhbHNlXHJcbiAgICAgICAgICAgICAgICAgICAgKVxyXG4gICAgICAgICAgICAgICAgKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIE9wdGlvbi5ub25lKCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgY29uc3QgYXJyYXlDbGFzcyA9IG5ldyBTQXJyYXlDbGFzcygpO1xyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcy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0SW5mbzogQXN0SW5mbyB8IHVuZGVmaW5lZCk6IHZvaWQge1xyXG4gICAgICAgIGlmIChpc05ldykge1xyXG4gICAgICAgICAgICB0aHJvdyBTY3JpcHRFcnJvci5ub3RDb25zdHJ1Y3RvckVycm9yKGFzdEluZm8/LnJhbmdlKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIG9uR2V0dGluZyh7IGtleSwgYXN0SW5mbyB9OiBHZXRDb3JlUGFyYW1zKTogT3B0aW9uPEZWYWx1ZT4ge1xyXG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XHJcbiAgICAgICAgICAgIGNhc2UgJ2lzQXJyYXknOiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLnNvbWUoXHJcbiAgICAgICAgICAgICAgICAgICAgbmV3IEZGdW5jdGlvbihcclxuICAgICAgICAgICAgICAgICAgICAgICAgKHsgYXJncywgaXNOZXcgfSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgU0FycmF5Q2xhc3MucHJlcGFyZVN0YXRpY01ldGhvZChpc05ldywgYXN0SW5mbyk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBhcmcgPSBhcmdzWzBdO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGQm9vbGVhbihhcmc/LnR5cGUgPT09IEZUeXBlLkFycmF5KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgZmFsc2VcclxuICAgICAgICAgICAgICAgICAgICApXHJcbiAgICAgICAgICAgICAgICApO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLm5vbmUoKTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuXHJcbmV4cG9ydCBjb25zdCBhcnJheUNsYXNzID0gbmV3IFNBcnJheUNsYXNzKCk7XHJcbiJdfQ== |
@@ -5,2 +5,2 @@ export { exec, test } from './main'; | ||
export { ScriptError } from './ScriptError'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFDcEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFDSCxZQUFZLEVBQ1osU0FBUyxFQUNULFVBQVUsRUFDVixNQUFNLEVBQ04sUUFBUSxFQUNSLFNBQVMsRUFDVCxPQUFPLEVBQ1AsT0FBTyxFQUNQLE9BQU8sRUFDUCxPQUFPLEVBRVAsS0FBSyxHQUtSLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBleGVjLCB0ZXN0IH0gZnJvbSAnLi9tYWluJztcclxuZXhwb3J0IHsgYXJyYXlDbGFzcyB9IGZyb20gJy4vYnVpbHRJbi9BcnJheSc7XHJcbmV4cG9ydCB7XHJcbiAgICBjcmVhdGVGVmFsdWUsXHJcbiAgICBiZWdpbkNhc3QsXHJcbiAgICB0b1R5cGVOYW1lLFxyXG4gICAgRkFycmF5LFxyXG4gICAgRkJvb2xlYW4sXHJcbiAgICBGRnVuY3Rpb24sXHJcbiAgICBGTnVtYmVyLFxyXG4gICAgRk9iamVjdCxcclxuICAgIEZSZWNvcmQsXHJcbiAgICBGU3RyaW5nLFxyXG4gICAgRlZhbHVlLF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uY3Rpb24sXHJcbiAgICBGTnVtYmVyLFxyXG4gICAgRk9iamVjdCxcclxuICAgIEZSZWNvcmQsXHJcbiAgICBGU3RyaW5nLFxyXG4gICAgRlZhbHVlLFxyXG4gICAgRlR5cGUsXHJcbiAgICBHZXRQYXJhbXMsXHJcbiAgICBTZXRQYXJhbXMsXHJcbiAgICBPbkdldHRpbmdQYXJhbXMsXHJcbiAgICBPblNldHRpbmdQYXJhbXMsXHJcbiAgICBHZXRDb3JlUGFyYW1zLFxyXG4gICAgU2V0Q29yZVBhcmFtcyxcclxufSBmcm9tICcuL3NjcmlwdFZhbHVlJztcclxuZXhwb3J0IHsgU2NyaXB0RXJyb3IgfSBmcm9tICcuL1NjcmlwdEVycm9yJztcclxuIl19 |
@@ -1,2 +0,2 @@ | ||
import { FFunction, FValue, OnGettingParams } from '../scriptValue'; | ||
import { FFunction, FValue, GetCoreParams } from '../scriptValue'; | ||
import { Option } from '@kizahasi/option'; | ||
@@ -6,5 +6,5 @@ declare class SArrayClass extends FFunction { | ||
private static prepareStaticMethod; | ||
onGetting({ key, astInfo }: OnGettingParams): Option<FValue>; | ||
onGetting({ key, astInfo }: GetCoreParams): Option<FValue>; | ||
} | ||
export declare const arrayClass: SArrayClass; | ||
export {}; |
export { exec, test } from './main'; | ||
export { arrayClass } from './builtIn/Array'; | ||
export { createFValue, beginCast, toTypeName, FArray, FBoolean, FFunction, FNumber, FObject, FRecord, FString, FValue, FType, GetParams, SetParams, OnGettingParams, OnSettingParams, } from './scriptValue'; | ||
export { createFValue, beginCast, toTypeName, FArray, FBoolean, FFunction, FNumber, FObject, FRecord, FString, FValue, FType, GetParams, SetParams, OnGettingParams, OnSettingParams, GetCoreParams, SetCoreParams, } from './scriptValue'; | ||
export { ScriptError } from './ScriptError'; |
@@ -15,7 +15,8 @@ import { Option } from '@kizahasi/option'; | ||
}; | ||
export declare type OnGettingParams = { | ||
export declare type GetCoreParams = { | ||
key: string | number; | ||
astInfo?: AstInfo; | ||
}; | ||
export declare type OnSettingParams = { | ||
export declare type OnGettingParams = GetCoreParams; | ||
export declare type SetCoreParams = { | ||
key: string | number; | ||
@@ -25,2 +26,3 @@ newValue: FValue; | ||
}; | ||
export declare type OnSettingParams = SetCoreParams; | ||
declare type FObjectBase = { | ||
@@ -105,5 +107,5 @@ get(params: GetParams): FValue; | ||
export declare abstract class FObject implements FObjectBase { | ||
protected abstract getCore(params: OnGettingParams): FValue; | ||
protected abstract getCore(params: GetCoreParams): FValue; | ||
get({ property, astInfo }: GetParams): FValue; | ||
protected abstract setCore(params: OnSettingParams): void; | ||
protected abstract setCore(params: SetCoreParams): void; | ||
set({ property, newValue, astInfo }: SetParams): void; | ||
@@ -118,4 +120,4 @@ get type(): typeof FType.Object; | ||
constructor(base?: FRecord); | ||
protected getCore({ key }: OnGettingParams): FValue; | ||
protected setCore({ key, newValue }: OnSettingParams): void; | ||
protected getCore({ key }: GetCoreParams): FValue; | ||
protected setCore({ key, newValue }: SetCoreParams): void; | ||
toJObject(): unknown; | ||
@@ -137,3 +139,3 @@ } | ||
exec(params: FFunctionParams): FValue; | ||
protected onGetting(params: OnGettingParams): Option<FValue>; | ||
protected onGetting(params: GetCoreParams): Option<FValue>; | ||
get({ property, astInfo }: GetParams): FValue; | ||
@@ -148,4 +150,4 @@ set({ astInfo }: SetParams): void; | ||
constructor(base?: FRecord); | ||
protected getCore(params: OnGettingParams): FValue; | ||
protected setCore({ key, newValue, astInfo }: OnSettingParams): void; | ||
protected getCore(params: GetCoreParams): FValue; | ||
protected setCore({ key, newValue, astInfo }: SetCoreParams): void; | ||
} | ||
@@ -152,0 +154,0 @@ export declare function createFValue(source: unknown): FValue; |
{ | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448097
3315