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

@kizahasi/flocon-script

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kizahasi/flocon-script - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

dist/cjs/utils/toJObject.js

6

dist/cjs/builtIn/Array.js

@@ -11,3 +11,3 @@ "use strict";

throw new Error('Array constructor is not supported');
}, undefined, false);
});
}

@@ -26,3 +26,3 @@ static prepareStaticMethod(isNew, astInfo) {

return new scriptValue_1.FBoolean((arg === null || arg === void 0 ? void 0 : arg.type) === scriptValue_1.FType.Array);
}, this, false));
}));
}

@@ -35,2 +35,2 @@ default:

exports.arrayClass = new FArrayClass();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxnREFBNEY7QUFDNUYsNkNBQTBDO0FBQzFDLDBCQUFpQztBQUVqQyxNQUFNLFdBQVksU0FBUSx1QkFBUztJQUMvQjtRQUNJLEtBQUssQ0FDRCxHQUFHLEVBQUU7WUFDRCxNQUFNLElBQUksS0FBSyxDQUFDLG9DQUFvQyxDQUFDLENBQUM7UUFDMUQsQ0FBQyxFQUNELFNBQVMsRUFDVCxLQUFLLENBQ1IsQ0FBQztJQUNOLENBQUM7SUFFTyxNQUFNLENBQUMsbUJBQW1CLENBQUMsS0FBYyxFQUFFLE9BQTRCO1FBQzNFLElBQUksS0FBSyxFQUFFO1lBQ1AsTUFBTSxlQUFXLENBQUMsbUJBQW1CLENBQUMsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLEtBQUssQ0FBQyxDQUFDO1NBQ3pEO0lBQ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25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoXG4gICAgICAgICAgICAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdBcnJheSBjb25zdHJ1Y3RvciBpcyBub3Qgc3VwcG9ydGVkJyk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdW5kZWZpbmVkLFxuICAgICAgICAgICAgZmFsc2VcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHN0YXRpYyBwcmVwYXJlU3RhdGljTWV0aG9kKGlzTmV3OiBib29sZWFuLCBhc3RJbmZvOiBBc3RJbmZvIHwgdW5kZWZpbmVkKTogdm9pZCB7XG4gICAgICAgIGlmIChpc05ldykge1xuICAgICAgICAgICAgdGhyb3cgU2NyaXB0RXJyb3Iubm90Q29uc3RydWN0b3JFcnJvcihhc3RJbmZvPy5yYW5nZSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdWJsaWMgb25HZXR0aW5nKHsga2V5LCBhc3RJbmZvIH06IEdldENvcmVQYXJhbXMpOiBPcHRpb248RlZhbHVlPiB7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdpc0FycmF5Jzoge1xuICAgICAgICAgICAgICAgIHJldHVybiBPcHRpb24uc29tZShcbiAgICAgICAgICAgICAgICAgICAgbmV3IEZGdW5jdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgICh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBGQXJyYXlDbGFzcy5wcmVwYXJlU3RhdGljTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBhcmcgPSBhcmdzWzBdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkJvb2xlYW4oYXJnPy50eXBlID09PSBGVHlwZS5BcnJheSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZhbHNlXG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLm5vbmUoKTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuZXhwb3J0IGNvbnN0IGFycmF5Q2xhc3MgPSBuZXcgRkFycmF5Q2xhc3MoKTtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxnREFBNEY7QUFDNUYsNkNBQTBDO0FBQzFDLDBCQUFpQztBQUVqQyxNQUFNLFdBQVksU0FBUSx1QkFBUztJQUMvQjtRQUNJLEtBQUssQ0FBQyxHQUFHLEVBQUU7WUFDUCxNQUFNLElBQUksS0FBSyxDQUFDLG9DQUFvQyxDQUFDLENBQUM7UUFDMUQsQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDO0lBRU8sTUFBTSxDQUFDLG1CQUFtQixDQUFDLEtBQWMsRUFBRSxPQUE0QjtRQUMzRSxJQUFJLEtBQUssRUFBRTtZQUNQLE1BQU0sZUFBVyxDQUFDLG1CQUFtQixDQUFDLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxLQUFLLENBQUMsQ0FBQztTQUN6RDtJQUNMLENBQUM7SUFFTSxTQUFTLENBQUMsRUFBRSxHQUFHLEVBQUUsT0FBTyxFQUFpQjtRQUM1QyxRQUFRLEdBQUcsRUFBRTtZQUNULEtBQUssU0FBUyxDQUFDLEN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gfVxuXG4gICAgcHJpdmF0ZSBzdGF0aWMgcHJlcGFyZVN0YXRpY01ldGhvZChpc05ldzogYm9vbGVhbiwgYXN0SW5mbzogQXN0SW5mbyB8IHVuZGVmaW5lZCk6IHZvaWQge1xuICAgICAgICBpZiAoaXNOZXcpIHtcbiAgICAgICAgICAgIHRocm93IFNjcmlwdEVycm9yLm5vdENvbnN0cnVjdG9yRXJyb3IoYXN0SW5mbz8ucmFuZ2UpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIG9uR2V0dGluZyh7IGtleSwgYXN0SW5mbyB9OiBHZXRDb3JlUGFyYW1zKTogT3B0aW9uPEZWYWx1ZT4ge1xuICAgICAgICBzd2l0Y2ggKGtleSkge1xuICAgICAgICAgICAgY2FzZSAnaXNBcnJheSc6IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLnNvbWUoXG4gICAgICAgICAgICAgICAgICAgIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgRkFycmF5Q2xhc3MucHJlcGFyZVN0YXRpY01ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBhcmcgPSBhcmdzWzBdO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGQm9vbGVhbihhcmc/LnR5cGUgPT09IEZUeXBlLkFycmF5KTtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLm5vbmUoKTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuZXhwb3J0IGNvbnN0IGFycmF5Q2xhc3MgPSBuZXcgRkFycmF5Q2xhc3MoKTtcbiJdfQ==

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

this.varTables = [new Map()];
this.currentTh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LnJlZjtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBwcm9wID0gdGhpcy5nbG9iYWxUaGlzLmdldCh7XG4gICAgICAgICAgICBwcm9wZXJ0eTogbmV3IFNjcmlwdFZhbHVlLkZTdHJpbmcobmFtZSksXG4gICAgICAgICAgICBhc3RJbmZvOiB7IHJhbmdlIH0sXG4gICAgICAgIH0pO1xuICAgICAgICBpZiAocHJvcCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICByZXR1cm4gcHJvcDtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIHB1YmxpYyBhc3NpZ24obmFtZTogc3RyaW5nLCBuZXdWYWx1ZTogU2NyaXB0VmFsdWUuRlZhbHVlLCByYW5nZTogUmFuZ2UgfCB1bmRlZmluZWQpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgZm91bmQgPSB0aGlzLnZhclRhYmxlc1xuICAgICAgICAgICAgLm1hcCh0YWJsZSA9PiB0YWJsZS5nZXQobmFtZSkpXG4gICAgICAgICAgICAuZmlsdGVyKHZhbCA9PiB2YWwgIT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgIC5yZXZlcnNlKClbMF07XG4gICAgICAgIGlmIChmb3VuZCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBpZiAoZm91bmQuaXNDb25zdCkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgaW52YWxpZCBhc3NpZ25tZW50IHRvIGNvbnN0ICcke25hbWV9J2ApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZm91bmQucmVmID0gbmV3VmFsdWU7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5nbG9iYWxUaGlzLnNldCh7XG4gICAgICAgICAgICBwcm9wZXJ0eTogbmV3IFNjcmlwdFZhbHVlLkZTdHJpbmcobmFtZSksXG4gICAgICAgICAgICBuZXdWYWx1ZSxcbiAgICAgICAgICAgIGFzdEluZm86IHsgcmFuZ2UgfSxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIGRlY2xhcmUobmFtZTogc3RyaW5nLCB2YWx1ZTogU2NyaXB0VmFsdWUuRlZhbHVlLCB0eXBlOiAnbGV0JyB8ICdjb25zdCcpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgdmFyVGFibGUgPSB0aGlzLnZhclRhYmxlc1t0aGlzLnZhclRhYmxlcy5sZW5ndGggLSAxXTtcbiAgICAgICAgaWYgKHZhclRhYmxlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGZvdW5kID0gdmFyVGFibGUuZ2V0KG5hbWUpO1xuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGByZWRlY2xhcmF0aW9uIG9mICR7dHlwZX0gJHtuYW1lfWApO1xuICAgICAgICB9XG4gICAgICAgIHZhclRhYmxlLnNldChuYW1lLCB7XG4gICAgICAgICAgICByZWY6IHZhbHVlLFxuICAgICAgICAgICAgaXNDb25zdDogdHlwZSA9PT0gJ2NvbnN0JyxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIHNjb3BlSW4oKTogdm9pZCB7XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnB1c2gobmV3IE1hcCgpKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2NvcGVPdXQoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLnZhclRhYmxlcy5sZW5ndGggPD0gMSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCd0aGlzLnZhclRhYmxlcyBtdXN0IG5vdCBiZSBlbXB0eScpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmFyVGFib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CBmID0gKCkgPT4ge1xuICAgICAgICBsZXQgeCA9IDI7XG4gICAgICAgIHJldHVybiAyO1xuICAgIH1cbiAgICBcbiAgICDjga7jgojjgYbjgarjgajjgY3jgIFsZXQgZiDjga7mi6zlvKfjga7lpJbjgafjga8gW3sgeDogMSB9XeOAgWxldCB4ID0gMiDjga7jgZnjgZDkuIrjgafjga8gW3sgeDogMSB9LCB7fV3jgIHkuIvjgYvjgokgKSDjgb7jgafjga8gW3sgeDogMSB9LCB7IHg6IDIgfV0g44Go44Gq44KL44CCXG4gICAgKi9cbiAgICBwcml2YXRlIHZhclRhYmxlczogTWFwPHN0cmluZywgUmVmPFNjcmlwdFZhbHVlLkZWYWx1ZT4+W10gPSBbbmV3IE1hcCgpXTtcblxuICAgIHB1YmxpYyBjb25zdHJ1Y3RvcihwdWJsaWMgZ2xvYmFsVGhpczogU2NyaXB0VmFsdWUuRlJlY29yZCkge31cblxuICAgIHB1YmxpYyBnZXQobmFtZTogc3RyaW5nLCByYW5nZTogUmFuZ2UgfCB1bmRlZmluZWQpOiBTY3JpcHRWYWx1ZS5GVmFsdWUge1xuICAgICAgICBjb25zdCBmb3VuZCA9IHRoaXMudmFyVGFibGVzXG4gICAgICAgICAgICAubWFwKHRhYmxlID0+IHRhYmxlLmdldChuYW1lKSlcbiAgICAgICAgICAgIC5maWx0ZXIodmFsID0+IHZhbCAhPT0gdW5kZWZpbmVkKVxuICAgICAgICAgICAgLnJldmVyc2UoKVswXTtcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHJldHVybiBmb3VuZC5yZWY7XG4gICAgICAgIH1cbiAgICAgICAgY29uc3QgcHJvcCA9IHRoaXMuZ2xvYmFsVGhpcy5nZXQoe1xuICAgICAgICAgICAgcHJvcGVydHk6IG5ldyBTY3JpcHRWYWx1ZS5GU3RyaW5nKG5hbWUpLFxuICAgICAgICAgICAgYXN0SW5mbzogeyByYW5nZSB9LFxuICAgICAgICB9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KTogdm9pZCB7XG4gICAgICAgIGNvbnN0IHZhclRhYmxlID0gdGhpcy52YXJUYWJsZXNbdGhpcy52YXJUYWJsZXMubGVuZ3RoIC0gMV07XG4gICAgICAgIGlmICh2YXJUYWJsZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMgc2hvdWxkIG5vdCBoYXBwZW4nKTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBmb3VuZCA9IHZhclRhYmxlLmdldChuYW1lKTtcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgcmVkZWNsYXJhdGlvbiBvZiAke3R5cGV9ICR7bmFtZX1gKTtcbiAgICAgICAgfVxuICAgICAgICB2YXJUYWJsZS5zZXQobmFtZSwge1xuICAgICAgICAgICAgcmVmOiB2YWx1ZSxcbiAgICAgICAgICAgIGlzQ29uc3Q6IHR5cGUgPT09ICdjb25zdCcsXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHB1YmxpYyBzY29wZUluKCk6IHZvaWQge1xuICAgICAgICB0aGlzLnZhclRhYmxlcy5wdXNoKG5ldyBNYXAoKSk7XG4gICAgfVxuXG4gICAgcHVibGljIHNjb3BlT3V0KCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy52YXJUYWJsZXMubGVuZ3RoIDw9IDEpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcy52YXJUYWJsZXMgbXVzdCBub3QgYmUgZW1wdHknKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZhclRhYmxlcy5wb3AoKTtcbiAgICB9XG59XG4iXX0=

@@ -8,3 +8,3 @@ import { FBoolean, FFunction, FType } from '../scriptValue';

throw new Error('Array constructor is not supported');
}, undefined, false);
});
}

@@ -23,3 +23,3 @@ static prepareStaticMethod(isNew, astInfo) {

return new FBoolean((arg === null || arg === void 0 ? void 0 : arg.type) === FType.Array);
}, this, false));
}));
}

@@ -32,2 +32,2 @@ default:

export const arrayClass = new FArrayClass();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQVcsUUFBUSxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQXlCLE1BQU0sZ0JBQWdCLENBQUM7QUFDNUYsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQzFDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxJQUFJLENBQUM7QUFFakMsTUFBTSxXQUFZLFNBQVEsU0FBUztJQUMvQjtRQUNJLEtBQUssQ0FDRCxHQUFHLEVBQUU7WUFDRCxNQUFNLElBQUksS0FBSyxDQUFDLG9DQUFvQyxDQUFDLENBQUM7UUFDMUQsQ0FBQyxFQUNELFNBQVMsRUFDVCxLQUFLLENBQ1IsQ0FBQztJQUNOLENBQUM7SUFFTyxNQUFNLENBQUMsbUJBQW1CLENBQUMsS0FBYyxFQUFFLE9BQTRCO1FBQzNFLElBQUksS0FBSyxFQUFFO1lBQ1AsTUFBTSxXQUFXLENBQUMsbUJBQW1CLENBQUMsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLEtBQUssQ0FBQyxDQUFDO1NBQ3pEO0lBQ0wsQ0FBQztJQUVNLFNBQVMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQWlCO1FBQzVDLFFBQVEsR0FBRyxFQUFFO1lBQ1QsS0FBSyxTQUFTLENBQUMsQ0FBQztnQkFDWixPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQ2QsSUFBSSxTQUFTLENBQ1QsQ0FBQyxFQUFFLElBQUks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gICAgICAgIGZhbHNlXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzdGF0aWMgcHJlcGFyZVN0YXRpY01ldGhvZChpc05ldzogYm9vbGVhbiwgYXN0SW5mbzogQXN0SW5mbyB8IHVuZGVmaW5lZCk6IHZvaWQge1xuICAgICAgICBpZiAoaXNOZXcpIHtcbiAgICAgICAgICAgIHRocm93IFNjcmlwdEVycm9yLm5vdENvbnN0cnVjdG9yRXJyb3IoYXN0SW5mbz8ucmFuZ2UpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIG9uR2V0dGluZyh7IGtleSwgYXN0SW5mbyB9OiBHZXRDb3JlUGFyYW1zKTogT3B0aW9uPEZWYWx1ZT4ge1xuICAgICAgICBzd2l0Y2ggKGtleSkge1xuICAgICAgICAgICAgY2FzZSAnaXNBcnJheSc6IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLnNvbWUoXG4gICAgICAgICAgICAgICAgICAgIG5ldyBGRnVuY3Rpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICAoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgRkFycmF5Q2xhc3MucHJlcGFyZVN0YXRpY01ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYXJnID0gYXJnc1swXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZCb29sZWFuKGFyZz8udHlwZSA9PT0gRlR5cGUuQXJyYXkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICBmYWxzZVxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgIC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oaXNOZXc6IGJvb2xlYW4sIGFzdEluZm86IEFzdEluZm8gfCB1bmRlZmluZWQpOiB2b2lkIHtcbiAgICAgICAgaWYgKGlzTmV3KSB7XG4gICAgICAgICAgICB0aHJvdyBTY3JpcHRFcnJvci5ub3RDb25zdHJ1Y3RvckVycm9yKGFzdEluZm8/LnJhbmdlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHB1YmxpYyBvbkdldHRpbmcoeyBrZXksIGFzdEluZm8gfTogR2V0Q29yZVBhcmFtcyk6IE9wdGlvbjxGVmFsdWU+IHtcbiAgICAgICAgc3dpdGNoIChrZXkpIHtcbiAgICAgICAgICAgIGNhc2UgJ2lzQXJyYXknOiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIE9wdGlvbi5zb21lKFxuICAgICAgICAgICAgICAgICAgICBuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIEZBcnJheUNsYXNzLnByZXBhcmVTdGF0aWNNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYXJnID0gYXJnc1swXTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkJvb2xlYW4oYXJnPy50eXBlID09PSBGVHlwZS5BcnJheSk7XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgcmV0dXJuIE9wdGlvbi5ub25lKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBjb25zdCBhcnJheUNsYXNzID0gbmV3IEZBcnJheUNsYXNzKCk7XG4iXX0=

@@ -15,3 +15,2 @@ import * as ScriptValue from './scriptValue';

this.varTables = [new Map()];
this.currentThis = globalThis;
}

@@ -77,2 +76,2 @@ get(name, range) {

}
//# sourceMapp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aXMuZ2V0KHtcbiAgICAgICAgICAgIHByb3BlcnR5OiBuZXcgU2NyaXB0VmFsdWUuRlN0cmluZyhuYW1lKSxcbiAgICAgICAgICAgIGFzdEluZm86IHsgcmFuZ2UgfSxcbiAgICAgICAgfSk7XG4gICAgICAgIGlmIChwcm9wICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHJldHVybiBwcm9wO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgfVxuXG4gICAgcHVibGljIGFzc2lnbihuYW1lOiBzdHJpbmcsIG5ld1ZhbHVlOiBTY3JpcHRWYWx1ZS5GVmFsdWUsIHJhbmdlOiBSYW5nZSB8IHVuZGVmaW5lZCk6IHZvaWQge1xuICAgICAgICBjb25zdCBmb3VuZCA9IHRoaXMudmFyVGFibGVzXG4gICAgICAgICAgICAubWFwKHRhYmxlID0+IHRhYmxlLmdldChuYW1lKSlcbiAgICAgICAgICAgIC5maWx0ZXIodmFsID0+IHZhbCAhPT0gdW5kZWZpbmVkKVxuICAgICAgICAgICAgLnJldmVyc2UoKVswXTtcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGlmIChmb3VuZC5pc0NvbnN0KSB7XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBpbnZhbGlkIGFzc2lnbm1lbnQgdG8gY29uc3QgJyR7bmFtZX0nYCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBmb3VuZC5yZWYgPSBuZXdWYWx1ZTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLmdsb2JhbFRoaXMuc2V0KHtcbiAgICAgICAgICAgIHByb3BlcnR5OiBuZXcgU2NyaXB0VmFsdWUuRlN0cmluZyhuYW1lKSxcbiAgICAgICAgICAgIG5ld1ZhbHVlLFxuICAgICAgICAgICAgYXN0SW5mbzogeyByYW5nZSB9LFxuICAgICA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XG4gICAgICAgICAgICByZXR1cm4gcHJvcDtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIHB1YmxpYyBhc3NpZ24obmFtZTogc3RyaW5nLCBuZXdWYWx1ZTogU2NyaXB0VmFsdWUuRlZhbHVlLCByYW5nZTogUmFuZ2UgfCB1bmRlZmluZWQpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgZm91bmQgPSB0aGlzLnZhclRhYmxlc1xuICAgICAgICAgICAgLm1hcCh0YWJsZSA9PiB0YWJsZS5nZXQobmFtZSkpXG4gICAgICAgICAgICAuZmlsdGVyKHZhbCA9PiB2YWwgIT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgIC5yZXZlcnNlKClbMF07XG4gICAgICAgIGlmIChmb3VuZCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBpZiAoZm91bmQuaXNDb25zdCkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgaW52YWxpZCBhc3NpZ25tZW50IHRvIGNvbnN0ICcke25hbWV9J2ApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZm91bmQucmVmID0gbmV3VmFsdWU7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5nbG9iYWxUaGlzLnNldCh7XG4gICAgICAgICAgICBwcm9wZXJ0eTogbmV3IFNjcmlwdFZhbHVlLkZTdHJpbmcobmFtZSksXG4gICAgICAgICAgICBuZXdWYWx1ZSxcbiAgICAgICAgICAgIGFzdEluZm86IHsgcmFuZ2UgfSxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIGRlY2xhcmUobmFtZTogc3RyaW5nLCB2YWx1ZTogU2NyaXB0VmFsdWUuRlZhbHVlLCB0eXBlOiAnbGV0JyB8ICdjb25zdCcpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgdmFyVGFibGUgPSB0aGlzLnZhclRhYmxlc1t0aGlzLnZhclRhYmxlcy5sZW5ndGggLSAxXTtcbiAgICAgICAgaWYgKHZhclRhYmxlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGZvdW5kID0gdmFyVGFibGUuZ2V0KG5hbWUpO1xuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGByZWRlY2xhcmF0aW9uIG9mICR7dHlwZX0gJHtuYW1lfWApO1xuICAgICAgICB9XG4gICAgICAgIHZhclRhYmxlLnNldChuYW1lLCB7XG4gICAgICAgICAgICByZWY6IHZhbHVlLFxuICAgICAgICAgICAgaXNDb25zdDogdHlwZSA9PT0gJ2NvbnN0JyxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIHNjb3BlSW4oKTogdm9pZCB7XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnB1c2gobmV3IE1hcCgpKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2NvcGVPdXQoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLnZhclRhYmxlcy5sZW5ndGggPD0gMSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCd0aGlzLnZhclRhYmxlcyBtdXN0IG5vdCBiZSBlbXB0eScpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnBvcCgpO1xuICAgIH1cbn1cbiJdfQ==

@@ -6,3 +6,2 @@ import { Range } from './range';

private varTables;
currentThis: ScriptValue.FRecord | undefined;
constructor(globalThis: ScriptValue.FRecord);

@@ -9,0 +8,0 @@ get(name: string, range: Range | undefined): ScriptValue.FValue;

@@ -134,8 +134,3 @@ import { Option } from '@kizahasi/option';

private readonly func;
private readonly $this;
private readonly isArrowFunction;
constructor(func: (params: FFunctionParams & {
$this: FValue;
}) => FValue, $this: FValue, isArrowFunction: boolean);
bind($this: FValue): FFunction;
constructor(func: (params: FFunctionParams) => FValue);
get type(): typeof FType.Function;

@@ -142,0 +137,0 @@ exec(params: FFunctionParams): FValue;

{
"version": "0.7.1",
"version": "0.8.0",
"license": "MIT",

@@ -37,10 +37,12 @@ "main": "dist/cjs/index.js",

"devDependencies": {
"@commitlint/cli": "13.2.0",
"@commitlint/config-conventional": "13.2.0",
"@types/estree": "0.0.50",
"@types/jest": "27.0.2",
"@typescript-eslint/eslint-plugin": "4.31.2",
"@typescript-eslint/parser": "4.31.2",
"@typescript-eslint/eslint-plugin": "4.32.0",
"@typescript-eslint/parser": "4.32.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"husky": "7.0.2",
"jest": "27.2.1",
"jest": "27.2.3",
"prettier": "2.4.1",

@@ -47,0 +49,0 @@ "rimraf": "3.0.2",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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