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.8.1-beta.1 to 0.8.1-beta.2

dist/cjs/builtIn/Map.js

16

dist/cjs/builtIn/Array.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.arrayClass = void 0;
const scriptValue_1 = require("../scriptValue");
const option_1 = require("@kizahasi/option");
const __1 = require("..");
class FArrayClass extends scriptValue_1.FFunction {
const ScriptError_1 = require("../ScriptError");
const FFunction_1 = require("../scriptValue/FFunction");
const FBoolean_1 = require("../scriptValue/FBoolean");
const FType_1 = require("../scriptValue/FType");
class FArrayClass extends FFunction_1.FFunction {
constructor() {

@@ -15,3 +17,3 @@ super(() => {

if (isNew) {
throw __1.ScriptError.notConstructorError(astInfo === null || astInfo === void 0 ? void 0 : astInfo.range);
throw ScriptError_1.ScriptError.notConstructorError(astInfo === null || astInfo === void 0 ? void 0 : astInfo.range);
}

@@ -22,6 +24,6 @@ }

case 'isArray': {
return option_1.Option.some(new scriptValue_1.FFunction(({ args, isNew }) => {
return option_1.Option.some(new FFunction_1.FFunction(({ args, isNew }) => {
FArrayClass.prepareStaticMethod(isNew, astInfo);
const arg = args[0];
return new scriptValue_1.FBoolean((arg === null || arg === void 0 ? void 0 : arg.type) === scriptValue_1.FType.Array);
return new FBoolean_1.FBoolean((arg === null || arg === void 0 ? void 0 : arg.type) === FType_1.FType.Array);
}));

@@ -35,2 +37,2 @@ }

exports.arrayClass = new FArrayClass();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI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ICAgICAgICAgICAgIG5ldyBGRnVuY3Rpb24oKHsgYXJncywgaXNOZXcgfSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgRkFycmF5Q2xhc3MucHJlcGFyZVN0YXRpY01ldGhvZChpc05ldywgYXN0SW5mbyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBhcmcgPSBhcmdzWzBdO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBGQm9vbGVhbihhcmc/LnR5cGUgPT09IEZUeXBlLkFycmF5KTtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICByZXR1cm4gT3B0aW9uLm5vbmUoKTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuZXhwb3J0IGNvbnN0IGFycmF5Q2xhc3MgPSBuZXcgRkFycmF5Q2xhc3MoKTtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSw2Q0FBMEM7QUFDMUMsZ0RBQTZDO0FBQzdDLHdEQUFxRDtBQUVyRCxzREFBbUQ7QUFDbkQsZ0RBQTZDO0FBRTdDLE1BQU0sV0FBWSxTQUFRLHFCQUFTO0lBQy9CO1FBQ0ksS0FBSyxDQUFDLEdBQUcsRUFBRTtZQUNQLE1BQU0sSUFBSSxLQUFLLENBQUMsb0NBQW9DLENBQUMsQ0FBQztRQUMxRCxDQUFDLENBQUMsQ0FBQztJQUNQLENBQUM7SUFFTyxNQUFNLENBQUMsbUJBQW1CLENBQUMsS0FBYyxFQUFFLE9BQTRCO1FBQzNFLElBQUksS0FBSyxFQUFF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gICAgICAgICAgICAgICBGQXJyYXlDbGFzcy5wcmVwYXJlU3RhdGljTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGFyZyA9IGFyZ3NbMF07XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZCb29sZWFuKGFyZz8udHlwZSA9PT0gRlR5cGUuQXJyYXkpO1xuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHJldHVybiBPcHRpb24ubm9uZSgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5leHBvcnQgY29uc3QgYXJyYXlDbGFzcyA9IG5ldyBGQXJyYXlDbGFzcygpO1xuIl19
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Context = void 0;
const ScriptValue = __importStar(require("./scriptValue"));
const FString_1 = require("./scriptValue/FString");
class Context {

@@ -47,3 +28,3 @@ constructor(globalThis) {

const prop = this.globalThis.get({
property: new ScriptValue.FString(name),
property: new FString_1.FString(name),
astInfo: { range },

@@ -69,3 +50,3 @@ });

this.globalThis.set({
property: new ScriptValue.FString(name),
property: new FString_1.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fCAnY29uc3QnKTogdm9pZCB7XG4gICAgICAgIGNvbnN0IHZhclRhYmxlID0gdGhpcy52YXJUYWJsZXNbdGhpcy52YXJUYWJsZXMubGVuZ3RoIC0gMV07XG4gICAgICAgIGlmICh2YXJUYWJsZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMgc2hvdWxkIG5vdCBoYXBwZW4nKTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBmb3VuZCA9IHZhclRhYmxlLmdldChuYW1lKTtcbiAgICAgICAgaWYgKGZvdW5kICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgcmVkZWNsYXJhdGlvbiBvZiAke3R5cGV9ICR7bmFtZX1gKTtcbiAgICAgICAgfVxuICAgICAgICB2YXJUYWJsZS5zZXQobmFtZSwge1xuICAgICAgICAgICAgcmVmOiB2YWx1ZSxcbiAgICAgICAgICAgIGlzQ29uc3Q6IHR5cGUgPT09ICdjb25zdCcsXG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHB1YmxpYyBzY29wZUluKCk6IHZvaWQge1xuICAgICAgICB0aGlzLnZhclRhYmxlcy5wdXNoKG5ldyBNYXAoKSk7XG4gICAgfVxuXG4gICAgcHVibGljIHNjb3BlT3V0KCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy52YXJUYWJsZXMubGVuZ3RoIDw9IDEpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcy52YXJUYWJsZXMgbXVzdCBub3QgYmUgZW1wdHknKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZhclRhYmxlcy5wb3AoKTtcbiAgICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250ZXh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uICAgIHB1YmxpYyBhc3NpZ24obmFtZTogc3RyaW5nLCBuZXdWYWx1ZTogRlZhbHVlLCByYW5nZTogUmFuZ2UgfCB1bmRlZmluZWQpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgZm91bmQgPSB0aGlzLnZhclRhYmxlc1xuICAgICAgICAgICAgLm1hcCh0YWJsZSA9PiB0YWJsZS5nZXQobmFtZSkpXG4gICAgICAgICAgICAuZmlsdGVyKHZhbCA9PiB2YWwgIT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgIC5yZXZlcnNlKClbMF07XG4gICAgICAgIGlmIChmb3VuZCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBpZiAoZm91bmQuaXNDb25zdCkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgaW52YWxpZCBhc3NpZ25tZW50IHRvIGNvbnN0ICcke25hbWV9J2ApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZm91bmQucmVmID0gbmV3VmFsdWU7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5nbG9iYWxUaGlzLnNldCh7XG4gICAgICAgICAgICBwcm9wZXJ0eTogbmV3IEZTdHJpbmcobmFtZSksXG4gICAgICAgICAgICBuZXdWYWx1ZSxcbiAgICAgICAgICAgIGFzdEluZm86IHsgcmFuZ2UgfSxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIGRlY2xhcmUobmFtZTogc3RyaW5nLCB2YWx1ZTogRlZhbHVlLCB0eXBlOiAnbGV0JyB8ICdjb25zdCcpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgdmFyVGFibGUgPSB0aGlzLnZhclRhYmxlc1t0aGlzLnZhclRhYmxlcy5sZW5ndGggLSAxXTtcbiAgICAgICAgaWYgKHZhclRhYmxlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGZvdW5kID0gdmFyVGFibGUuZ2V0KG5hbWUpO1xuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGByZWRlY2xhcmF0aW9uIG9mICR7dHlwZX0gJHtuYW1lfWApO1xuICAgICAgICB9XG4gICAgICAgIHZhclRhYmxlLnNldChuYW1lLCB7XG4gICAgICAgICAgICByZWY6IHZhbHVlLFxuICAgICAgICAgICAgaXNDb25zdDogdHlwZSA9PT0gJ2NvbnN0JyxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIHNjb3BlSW4oKTogdm9pZCB7XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnB1c2gobmV3IE1hcCgpKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2NvcGVPdXQoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLnZhclRhYmxlcy5sZW5ndGggPD0gMSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCd0aGlzLnZhclRhYmxlcyBtdXN0IG5vdCBiZSBlbXB0eScpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnBvcCgpO1xuICAgIH1cbn1cbiJdfQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScriptError = exports.FType = exports.FString = exports.FRecord = exports.FObject = exports.FNumber = exports.FFunction = exports.FBoolean = exports.FTypedArray = exports.FArray = exports.toTypeName = exports.beginCast = exports.createFValue = exports.arrayClass = exports.test = exports.exec = void 0;
exports.ScriptError = exports.toTypeName = exports.FType = exports.FSymbol = exports.FString = exports.FRecord = exports.FObject = exports.FNumber = exports.FMap = exports.FFunction = exports.FBoolean = exports.FTypedArray = exports.FArray = exports.createFValue = exports.beginCast = exports.symbolClass = exports.mapClass = exports.arrayClass = exports.test = exports.exec = void 0;
var main_1 = require("./main");

@@ -9,17 +9,35 @@ Object.defineProperty(exports, "exec", { enumerable: true, get: function () { return main_1.exec; } });

Object.defineProperty(exports, "arrayClass", { enumerable: true, get: function () { return Array_1.arrayClass; } });
var scriptValue_1 = require("./scriptValue");
Object.defineProperty(exports, "createFValue", { enumerable: true, get: function () { return scriptValue_1.createFValue; } });
Object.defineProperty(exports, "beginCast", { enumerable: true, get: function () { return scriptValue_1.beginCast; } });
Object.defineProperty(exports, "toTypeName", { enumerable: true, get: function () { return scriptValue_1.toTypeName; } });
Object.defineProperty(exports, "FArray", { enumerable: true, get: function () { return scriptValue_1.FArray; } });
Object.defineProperty(exports, "FTypedArray", { enumerable: true, get: function () { return scriptValue_1.FTypedArray; } });
Object.defineProperty(exports, "FBoolean", { enumerable: true, get: function () { return scriptValue_1.FBoolean; } });
Object.defineProperty(exports, "FFunction", { enumerable: true, get: function () { return scriptValue_1.FFunction; } });
Object.defineProperty(exports, "FNumber", { enumerable: true, get: function () { return scriptValue_1.FNumber; } });
Object.defineProperty(exports, "FObject", { enumerable: true, get: function () { return scriptValue_1.FObject; } });
Object.defineProperty(exports, "FRecord", { enumerable: true, get: function () { return scriptValue_1.FRecord; } });
Object.defineProperty(exports, "FString", { enumerable: true, get: function () { return scriptValue_1.FString; } });
Object.defineProperty(exports, "FType", { enumerable: true, get: function () { return scriptValue_1.FType; } });
var Map_1 = require("./builtIn/Map");
Object.defineProperty(exports, "mapClass", { enumerable: true, get: function () { return Map_1.mapClass; } });
var Symbol_1 = require("./builtIn/Symbol");
Object.defineProperty(exports, "symbolClass", { enumerable: true, get: function () { return Symbol_1.symbolClass; } });
var cast_1 = require("./scriptValue/cast");
Object.defineProperty(exports, "beginCast", { enumerable: true, get: function () { return cast_1.beginCast; } });
var createFValue_1 = require("./scriptValue/createFValue");
Object.defineProperty(exports, "createFValue", { enumerable: true, get: function () { return createFValue_1.createFValue; } });
var FArray_1 = require("./scriptValue/FArray");
Object.defineProperty(exports, "FArray", { enumerable: true, get: function () { return FArray_1.FArray; } });
Object.defineProperty(exports, "FTypedArray", { enumerable: true, get: function () { return FArray_1.FTypedArray; } });
var FBoolean_1 = require("./scriptValue/FBoolean");
Object.defineProperty(exports, "FBoolean", { enumerable: true, get: function () { return FBoolean_1.FBoolean; } });
var FFunction_1 = require("./scriptValue/FFunction");
Object.defineProperty(exports, "FFunction", { enumerable: true, get: function () { return FFunction_1.FFunction; } });
var FMap_1 = require("./scriptValue/FMap");
Object.defineProperty(exports, "FMap", { enumerable: true, get: function () { return FMap_1.FMap; } });
var FNumber_1 = require("./scriptValue/FNumber");
Object.defineProperty(exports, "FNumber", { enumerable: true, get: function () { return FNumber_1.FNumber; } });
var FObject_1 = require("./scriptValue/FObject");
Object.defineProperty(exports, "FObject", { enumerable: true, get: function () { return FObject_1.FObject; } });
var FRecord_1 = require("./scriptValue/FRecord");
Object.defineProperty(exports, "FRecord", { enumerable: true, get: function () { return FRecord_1.FRecord; } });
var FString_1 = require("./scriptValue/FString");
Object.defineProperty(exports, "FString", { enumerable: true, get: function () { return FString_1.FString; } });
var FSymbol_1 = require("./scriptValue/FSymbol");
Object.defineProperty(exports, "FSymbol", { enumerable: true, get: function () { return FSymbol_1.FSymbol; } });
var FType_1 = require("./scriptValue/FType");
Object.defineProperty(exports, "FType", { enumerable: true, get: function () { return FType_1.FType; } });
var toTypeName_1 = require("./scriptValue/toTypeName");
Object.defineProperty(exports, "toTypeName", { enumerable: true, get: function () { return toTypeName_1.toTypeName; } });
var ScriptError_1 = require("./ScriptError");
Object.defineProperty(exports, "ScriptError", { enumerable: true, get: function () { return ScriptError_1.ScriptError; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQW9DO0FBQTNCLDRGQUFBLElBQUksT0FBQTtBQUFFLD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VlL0ZOdW1iZXInO1xuZXhwb3J0IHsgRk9iamVjdCB9IGZyb20gJy4vc2NyaXB0VmFsdWUvRk9iamVjdCc7XG5leHBvcnQgeyBGUmVjb3JkIH0gZnJvbSAnLi9zY3JpcHRWYWx1ZS9GUmVjb3JkJztcbmV4cG9ydCB7IEZTdHJpbmcgfSBmcm9tICcuL3NjcmlwdFZhbHVlL0ZTdHJpbmcnO1xuZXhwb3J0IHsgRlN5bWJvbCB9IGZyb20gJy4vc2NyaXB0VmFsdWUvRlN5bWJvbCc7XG5leHBvcnQgeyBGVHlwZSB9IGZyb20gJy4vc2NyaXB0VmFsdWUvRlR5cGUnO1xuZXhwb3J0IHsgRlZhbHVlIH0gZnJvbSAnLi9zY3JpcHRWYWx1ZS9GVmFsdWUnO1xuZXhwb3J0IHsgdG9UeXBlTmFtZSB9IGZyb20gJy4vc2NyaXB0VmFsdWUvdG9UeXBlTmFtZSc7XG5cbmV4cG9ydCB7IFNjcmlwdEVycm9yIH0gZnJvbSAnLi9TY3JpcHRFcnJvcic7XG4iXX0=

@@ -12,4 +12,7 @@ "use strict";

}
static requiresNewError(range) {
return new ScriptError('Need to call with `new` keyword', range);
}
}
exports.ScriptError = ScriptError;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2NyaXB0RXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvU2NyaXB0RXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsTUFBYSxXQUFZLFNBQVEsS0FBSztJQUNsQyxZQUFtQixPQUFnQixFQUFrQixLQUFhO1FBQzlELEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQURrQyxVQUFLLEdBQUwsS0FBSyxDQUFRO0lBRWxFLENBQUM7SUFFTSxNQUFNLENBQUMsbUJBQW1CLENBQUMsS0FBYTtRQUMzQyxPQUFPLElBQUksV0FBVyxDQUFDLG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cEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGVmFsdWUgfSBmcm9tICcuLi9zY3JpcHRWYWx1ZS9GVmFsdWUnO1xuXG4vLyDljZjjgatzb3VyY2U/LnRvSk9iamVjdCgpIOOBqOabuOOBj+OBqOOAgXNvdXJjZSA9PT0gbnVsbOOBruOBqOOBjeOBq251bGzjgafjga/jgarjgY91bmRlZmluZWTjgajjgarjgaPjgabjgZfjgb7jgYbjgILjgZPjgozjgafjga/lm7DjgovloLTpnaLjgYzjgYLjgovjgZ/jgoHjgIHjgZPjga7plqLmlbDjgpLlrprnvqnjgZfjgabjgYTjgovjgIJcbmV4cG9ydCBjb25zdCB0b0pPYmplY3QgPSAoc291cmNlOiBGVmFsdWUpID0+IHtcbiAgICBpZiAoc291cmNlID09IG51bGwpIHtcbiAgICAgICAgcmV0dXJuIHNvdXJjZTtcbiAgICB9XG4gICAgcmV0dXJuIHNvdXJjZS50b0pPYmplY3QoKTtcbn07XG4iXX0=

@@ -1,4 +0,6 @@

import { FBoolean, FFunction, FType } from '../scriptValue';
import { Option } from '@kizahasi/option';
import { ScriptError } from '..';
import { ScriptError } from '../ScriptError';
import { FFunction } from '../scriptValue/FFunction';
import { FBoolean } from '../scriptValue/FBoolean';
import { FType } from '../scriptValue/FType';
class FArrayClass extends FFunction {

@@ -30,2 +32,2 @@ constructor() {

export const arrayClass = new FArrayClass();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQVcsUUFBUSxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQXlCLE1BQU0sZ0JBQWdCLENBQUM7QUFDNUYsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGtCQUFrQixDQU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BuZXcgRkZ1bmN0aW9uKCh7IGFyZ3MsIGlzTmV3IH0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIEZBcnJheUNsYXNzLnByZXBhcmVTdGF0aWNNZXRob2QoaXNOZXcsIGFzdEluZm8pO1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgYXJnID0gYXJnc1swXTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgRkJvb2xlYW4oYXJnPy50eXBlID09PSBGVHlwZS5BcnJheSk7XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgcmV0dXJuIE9wdGlvbi5ub25lKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBjb25zdCBhcnJheUNsYXNzID0gbmV3IEZBcnJheUNsYXNzKCk7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJyYXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYnVpbHRJbi9BcnJheS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDMUMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUVyRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDbkQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRTdDLE1BQU0sV0FBWSxTQUFRLFNBQVM7SUFDL0I7UUFDSSxLQUFLLENBQUMsR0FBRyxFQUFFO1lB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248RlZhbHVlPiB7XG4gICAgICAgIHN3aXRjaCAoa2V5KSB7XG4gICAgICAgICAgICBjYXNlICdpc0FycmF5Jzoge1xuICAgICAgICAgICAgICAgIHJldHVybiBPcHRpb24uc29tZShcbiAgICAgICAgICAgICAgICAgICAgbmV3IEZGdW5jdGlvbigoeyBhcmdzLCBpc05ldyB9KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBGQXJyYXlDbGFzcy5wcmVwYXJlU3RhdGljTWV0aG9kKGlzTmV3LCBhc3RJbmZvKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGFyZyA9IGFyZ3NbMF07XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IEZCb29sZWFuKGFyZz8udHlwZSA9PT0gRlR5cGUuQXJyYXkpO1xuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHJldHVybiBPcHRpb24ubm9uZSgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5leHBvcnQgY29uc3QgYXJyYXlDbGFzcyA9IG5ldyBGQXJyYXlDbGFzcygpO1xuIl19

@@ -1,2 +0,2 @@

import * as ScriptValue from './scriptValue';
import { FString } from './scriptValue/FString';
export class Context {

@@ -25,3 +25,3 @@ constructor(globalThis) {

const prop = this.globalThis.get({
property: new ScriptValue.FString(name),
property: new FString(name),
astInfo: { range },

@@ -47,3 +47,3 @@ });

this.globalThis.set({
property: new ScriptValue.FString(name),
property: new FString(name),
newValue,

@@ -77,2 +77,2 @@ astInfo: { range },

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9B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lLCByYW5nZTogUmFuZ2UgfCB1bmRlZmluZWQpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgZm91bmQgPSB0aGlzLnZhclRhYmxlc1xuICAgICAgICAgICAgLm1hcCh0YWJsZSA9PiB0YWJsZS5nZXQobmFtZSkpXG4gICAgICAgICAgICAuZmlsdGVyKHZhbCA9PiB2YWwgIT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgIC5yZXZlcnNlKClbMF07XG4gICAgICAgIGlmIChmb3VuZCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBpZiAoZm91bmQuaXNDb25zdCkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgaW52YWxpZCBhc3NpZ25tZW50IHRvIGNvbnN0ICcke25hbWV9J2ApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZm91bmQucmVmID0gbmV3VmFsdWU7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5nbG9iYWxUaGlzLnNldCh7XG4gICAgICAgICAgICBwcm9wZXJ0eTogbmV3IFNjcmlwdFZhbHVlLkZTdHJpbmcobmFtZSksXG4gICAgICAgICAgICBuZXdWYWx1ZSxcbiAgICAgICAgICAgIGFzdEluZm86IHsgcmFuZ2UgfSxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIGRlY2xhcmUobmFtZTogc3RyaW5nLCB2YWx1ZTogU2NyaXB0VmFsdWUuRlZhbHVlLCB0eXBlOiAnbGV0JyB8ICdjb25zdCcpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgdmFyVGFibGUgPSB0aGlzLnZhclRhYmxlc1t0aGlzLnZhclRhYmxlcy5sZW5ndGggLSAxXTtcbiAgICAgICAgaWYgKHZhclRhYmxlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigndGhpcyBzaG91bGQgbm90IGhhcHBlbicpO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGZvdW5kID0gdmFyVGFibGUuZ2V0KG5hbWUpO1xuICAgICAgICBpZiAoZm91bmQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGByZWRlY2xhcmF0aW9uIG9mICR7dHlwZX0gJHtuYW1lfWApO1xuICAgICAgICB9XG4gICAgICAgIHZhclRhYmxlLnNldChuYW1lLCB7XG4gICAgICAgICAgICByZWY6IHZhbHVlLFxuICAgICAgICAgICAgaXNDb25zdDogdHlwZSA9PT0gJ2NvbnN0JyxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgcHVibGljIHNjb3BlSW4oKTogdm9pZCB7XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnB1c2gobmV3IE1hcCgpKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2NvcGVPdXQoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLnZhclRhYmxlcy5sZW5ndGggPD0gMSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCd0aGlzLnZhclRhYmxlcyBtdXN0IG5vdCBiZSBlbXB0eScpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmFyVGFibGVzLnBvcCgpO1xuICAgIH1cbn1cbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUtoRCxNQUFNLE9BQU8sT0FBTztJQVloQixZQUEwQixVQUFtQjtRQUFuQixlQUFVLEdBQVYsVUFBVSxDQUFTO1FBWDdDOzs7Ozs7OztVQVFFO1FBQ00sY0FBUyxHQUErQixDQUFDLElBQUksR0FBRyxFQUFFL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ibGUuc2V0KG5hbWUsIHtcbiAgICAgICAgICAgIHJlZjogdmFsdWUsXG4gICAgICAgICAgICBpc0NvbnN0OiB0eXBlID09PSAnY29uc3QnLFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc2NvcGVJbigpOiB2b2lkIHtcbiAgICAgICAgdGhpcy52YXJUYWJsZXMucHVzaChuZXcgTWFwKCkpO1xuICAgIH1cblxuICAgIHB1YmxpYyBzY29wZU91dCgpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMudmFyVGFibGVzLmxlbmd0aCA8PSAxKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RoaXMudmFyVGFibGVzIG11c3Qgbm90IGJlIGVtcHR5Jyk7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy52YXJUYWJsZXMucG9wKCk7XG4gICAgfVxufVxuIl19
export { exec, test } from './main';
export { arrayClass } from './builtIn/Array';
export { createFValue, beginCast, toTypeName, FArray, FTypedArray, FBoolean, FFunction, FNumber, FObject, FRecord, FString, FType, } from './scriptValue';
export { mapClass } from './builtIn/Map';
export { symbolClass } from './builtIn/Symbol';
export { beginCast } from './scriptValue/cast';
export { createFValue } from './scriptValue/createFValue';
export { FArray, FTypedArray } from './scriptValue/FArray';
export { FBoolean } from './scriptValue/FBoolean';
export { FFunction } from './scriptValue/FFunction';
export { FMap } from './scriptValue/FMap';
export { FNumber } from './scriptValue/FNumber';
export { FObject } from './scriptValue/FObject';
export { FRecord } from './scriptValue/FRecord';
export { FString } from './scriptValue/FString';
export { FSymbol } from './scriptValue/FSymbol';
export { FType } from './scriptValue/FType';
export { toTypeName } from './scriptValue/toTypeName';
export { ScriptError } from './ScriptError';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYX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Jy4vc2NyaXB0VmFsdWUvRk1hcCc7XG5leHBvcnQgeyBGTnVtYmVyIH0gZnJvbSAnLi9zY3JpcHRWYWx1ZS9GTnVtYmVyJztcbmV4cG9ydCB7IEZPYmplY3QgfSBmcm9tICcuL3NjcmlwdFZhbHVlL0ZPYmplY3QnO1xuZXhwb3J0IHsgRlJlY29yZCB9IGZyb20gJy4vc2NyaXB0VmFsdWUvRlJlY29yZCc7XG5leHBvcnQgeyBGU3RyaW5nIH0gZnJvbSAnLi9zY3JpcHRWYWx1ZS9GU3RyaW5nJztcbmV4cG9ydCB7IEZTeW1ib2wgfSBmcm9tICcuL3NjcmlwdFZhbHVlL0ZTeW1ib2wnO1xuZXhwb3J0IHsgRlR5cGUgfSBmcm9tICcuL3NjcmlwdFZhbHVlL0ZUeXBlJztcbmV4cG9ydCB7IEZWYWx1ZSB9IGZyb20gJy4vc2NyaXB0VmFsdWUvRlZhbHVlJztcbmV4cG9ydCB7IHRvVHlwZU5hbWUgfSBmcm9tICcuL3NjcmlwdFZhbHVlL3RvVHlwZU5hbWUnO1xuXG5leHBvcnQgeyBTY3JpcHRFcnJvciB9IGZyb20gJy4vU2NyaXB0RXJyb3InO1xuIl19

@@ -9,3 +9,6 @@ export class ScriptError extends Error {

}
static requiresNewError(range) {
return new ScriptError('Need to call with `new` keyword', range);
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2NyaXB0RXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvU2NyaXB0RXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLFdBQVksU0FBUSxLQUFLO0lBQ2xDLFlBQW1CLE9BQWdCLEVBQWtCLEtBQWE7UUFDOUQsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBRGtDLFVBQUssR0FBTCxLQUFLLENBQVE7SUFFbEUsQ0FBQztJQ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UVNLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFhO1FBQ3hDLE9BQU8sSUFBSSxXQUFXLENBQUMsaUNBQWlDLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDckUsQ0FBQztDQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUmFuZ2UgfSBmcm9tICcuL3JhbmdlJztcblxuZXhwb3J0IGNsYXNzIFNjcmlwdEVycm9yIGV4dGVuZHMgRXJyb3Ige1xuICAgIHB1YmxpYyBjb25zdHJ1Y3RvcihtZXNzYWdlPzogc3RyaW5nLCBwdWJsaWMgcmVhZG9ubHkgcmFuZ2U/OiBSYW5nZSkge1xuICAgICAgICBzdXBlcihtZXNzYWdlKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc3RhdGljIG5vdENvbnN0cnVjdG9yRXJyb3IocmFuZ2U/OiBSYW5nZSkge1xuICAgICAgICByZXR1cm4gbmV3IFNjcmlwdEVycm9yKCdOb3QgYSBjb25zdHJ1Y3RvcicsIHJhbmdlKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgc3RhdGljIHJlcXVpcmVzTmV3RXJyb3IocmFuZ2U/OiBSYW5nZSkge1xuICAgICAgICByZXR1cm4gbmV3IFNjcmlwdEVycm9yKCdOZWVkIHRvIGNhbGwgd2l0aCBgbmV3YCBrZXl3b3JkJywgcmFuZ2UpO1xuICAgIH1cbn1cbiJdfQ==

@@ -8,2 +8,2 @@ // 単にsource?.toJObject() と書くと、source === nullのときにnullではなくundefinedとなってしまう。これでは困る場面があるため、この関数を定義している。

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9KT2JqZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL3RvSk9iamVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxvR0FBb0c7QUFDcEcsTUFBTSxDQUF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pCO0lBQ0QsT0FBTyxNQUFNLENBQUMsU0FBUyxFQUFFLENBQUM7QUFDOUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRlZhbHVlIH0gZnJvbSAnLi4vc2NyaXB0VmFsdWUvRlZhbHVlJztcblxuLy8g5Y2Y44Grc291cmNlPy50b0pPYmplY3QoKSDjgajmm7jjgY/jgajjgIFzb3VyY2UgPT09IG51bGzjga7jgajjgY3jgatudWxs44Gn44Gv44Gq44GPdW5kZWZpbmVk44Go44Gq44Gj44Gm44GX44G+44GG44CC44GT44KM44Gn44Gv5Zuw44KL5aC06Z2i44GM44GC44KL44Gf44KB44CB44GT44Gu6Zai5pWw44KS5a6a576p44GX44Gm44GE44KL44CCXG5leHBvcnQgY29uc3QgdG9KT2JqZWN0ID0gKHNvdXJjZTogRlZhbHVlKSA9PiB7XG4gICAgaWYgKHNvdXJjZSA9PSBudWxsKSB7XG4gICAgICAgIHJldHVybiBzb3VyY2U7XG4gICAgfVxuICAgIHJldHVybiBzb3VyY2UudG9KT2JqZWN0KCk7XG59O1xuIl19

@@ -1,3 +0,5 @@

import { FFunction, FValue, GetCoreParams } from '../scriptValue';
import { GetCoreParams } from '../scriptValue/types';
import { Option } from '@kizahasi/option';
import { FFunction } from '../scriptValue/FFunction';
import { FValue } from '../scriptValue/FValue';
declare class FArrayClass extends FFunction {

@@ -4,0 +6,0 @@ constructor();

import { Range } from './range';
import * as ScriptValue from './scriptValue';
import { FRecord } from './scriptValue/FRecord';
import { FValue } from './scriptValue/FValue';
export declare class Context {
globalThis: ScriptValue.FRecord;
globalThis: FRecord;
private varTables;
constructor(globalThis: ScriptValue.FRecord);
get(name: string, range: Range | undefined): ScriptValue.FValue;
assign(name: string, newValue: ScriptValue.FValue, range: Range | undefined): void;
declare(name: string, value: ScriptValue.FValue, type: 'let' | 'const'): void;
constructor(globalThis: FRecord);
get(name: string, range: Range | undefined): FValue;
assign(name: string, newValue: FValue, range: Range | undefined): void;
declare(name: string, value: FValue, type: 'let' | 'const'): void;
scopeIn(): void;
scopeOut(): void;
}
export { exec, test } from './main';
export { arrayClass } from './builtIn/Array';
export { createFValue, beginCast, toTypeName, AstInfo, FArray, FTypedArray, FBoolean, FFunction, FNumber, FObject, FRecord, FString, FValue, FType, GetParams, SetParams, OnGettingParams, OnSettingParams, GetCoreParams, SetCoreParams, } from './scriptValue';
export { mapClass } from './builtIn/Map';
export { symbolClass } from './builtIn/Symbol';
export { AstInfo, GetParams, SetParams, OnGettingParams, OnSettingParams, GetCoreParams, SetCoreParams, } from './scriptValue/types';
export { beginCast } from './scriptValue/cast';
export { createFValue } from './scriptValue/createFValue';
export { FArray, FTypedArray } from './scriptValue/FArray';
export { FBoolean } from './scriptValue/FBoolean';
export { FFunction } from './scriptValue/FFunction';
export { FMap } from './scriptValue/FMap';
export { FNumber } from './scriptValue/FNumber';
export { FObject } from './scriptValue/FObject';
export { FRecord } from './scriptValue/FRecord';
export { FString } from './scriptValue/FString';
export { FSymbol } from './scriptValue/FSymbol';
export { FType } from './scriptValue/FType';
export { FValue } from './scriptValue/FValue';
export { toTypeName } from './scriptValue/toTypeName';
export { ScriptError } from './ScriptError';

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

static notConstructorError(range?: Range): ScriptError;
static requiresNewError(range?: Range): ScriptError;
}

@@ -1,2 +0,2 @@

import { FValue } from '../scriptValue';
import { FValue } from '../scriptValue/FValue';
export declare const toJObject: (source: FValue) => unknown;
{
"version": "0.8.1-beta.1",
"version": "0.8.1-beta.2",
"license": "MIT",

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

"devDependencies": {
"@commitlint/cli": "13.2.0",
"@commitlint/cli": "13.2.1",
"@commitlint/config-conventional": "13.2.0",

@@ -47,7 +47,7 @@ "@types/estree": "0.0.50",

"husky": "7.0.2",
"jest": "27.2.3",
"jest": "27.2.5",
"prettier": "2.4.1",
"rimraf": "3.0.2",
"ts-jest": "27.0.5",
"typescript": "4.4.3"
"typescript": "4.4.4"
},

@@ -54,0 +54,0 @@ "dependencies": {

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