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

fable-core

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-core - npm Package Compare versions

Comparing version 0.7.10 to 0.7.11

2

package.json
{
"name": "fable-core",
"version": "0.7.10",
"version": "0.7.11",
"description": "Fable core lib & bindings for native JS objects, browser and node APIs",

@@ -5,0 +5,0 @@ "main": "Main.js",

@@ -6,3 +6,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

import FSymbol from "./Symbol";
import { fableGlobal } from "./Symbol";
import { getType } from "./Symbol";
import List from "./List";

@@ -254,3 +254,3 @@ import { ofArray as listOfArray } from "./List";

} else {
var T = fableGlobal.types.get(type);
var T = getType(type);
if (T) {

@@ -257,0 +257,0 @@ delete v.$type;

@@ -1,8 +0,3 @@

export declare const fableGlobal: {
types: Map<string, FunctionConstructor>;
symbols: {
reflection: symbol;
generics: symbol;
};
};
export declare function setType(fullName: string, cons: FunctionConstructor): void;
export declare function getType(fullName: string): FunctionConstructor;
declare var _default: {

@@ -9,0 +4,0 @@ reflection: symbol;

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

export var fableGlobal = function () {
var fableGlobal = function () {
var globalObj = typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : null;

@@ -14,2 +14,8 @@ if (typeof globalObj.__FABLE_CORE__ === "undefined") {

}();
export function setType(fullName, cons) {
fableGlobal.types.set(fullName, cons);
}
export function getType(fullName) {
return fableGlobal.types.get(fullName);
}
export default fableGlobal.symbols;

@@ -294,3 +294,3 @@ (function (global, factory) {

} else {
var T = _Symbol.fableGlobal.types.get(type);
var T = (0, _Symbol.getType)(type);
if (T) {

@@ -297,0 +297,0 @@ delete v.$type;

@@ -19,3 +19,5 @@ (function (global, factory) {

});
var fableGlobal = exports.fableGlobal = function () {
exports.setType = setType;
exports.getType = getType;
var fableGlobal = function () {
var globalObj = typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : null;

@@ -33,3 +35,9 @@ if (typeof globalObj.__FABLE_CORE__ === "undefined") {

}();
function setType(fullName, cons) {
fableGlobal.types.set(fullName, cons);
}
function getType(fullName) {
return fableGlobal.types.get(fullName);
}
exports.default = fableGlobal.symbols;
});

@@ -24,3 +24,2 @@ (function (global, factory) {

exports.Interface = Interface;
exports.declare = declare;
exports.makeGeneric = makeGeneric;

@@ -179,9 +178,2 @@ exports.isGeneric = isGeneric;

}
function declare(cons) {
var info = cons.prototype[_Symbol2.default.reflection];
if (typeof info === "function") {
var type = info().type;
if (typeof type === "string") _Symbol.fableGlobal.types.set(type, cons);
}
}
function makeGeneric(typeDef, genArgs) {

@@ -188,0 +180,0 @@ return function (_typeDef) {

@@ -29,3 +29,2 @@ export interface IComparer<T> {

export declare function Interface(name: string): NonDeclaredType;
export declare function declare(cons: FunctionConstructor): void;
export declare function makeGeneric(typeDef: FunctionConstructor, genArgs: any): any;

@@ -32,0 +31,0 @@ /**

@@ -14,3 +14,2 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

import FSymbol from "./Symbol";
import { fableGlobal } from "./Symbol";
export var NonDeclaredType = function () {

@@ -72,9 +71,2 @@ function NonDeclaredType(kind, name, generics) {

}
export function declare(cons) {
var info = cons.prototype[FSymbol.reflection];
if (typeof info === "function") {
var type = info().type;
if (typeof type === "string") fableGlobal.types.set(type, cons);
}
}
export function makeGeneric(typeDef, genArgs) {

@@ -81,0 +73,0 @@ return function (_typeDef) {

Sorry, the diff of this file is not supported yet

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