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 1.0.0-narumi-8 to 1.0.0-narumi-901

4

package.json
{
"name": "fable-core",
"version": "1.0.0-narumi-8",
"version": "1.0.0-narumi-901",
"description": "Fable core library",

@@ -18,2 +18,2 @@ "repository": {

"homepage": "https://github.com/fable-compiler/Fable#readme"
}
}

@@ -14,3 +14,3 @@ import FableSymbol from "./Symbol";

import { fsFormat } from "./String";
function deflate(v) {
export function deflate(v) {
if (ArrayBuffer.isView(v)) {

@@ -17,0 +17,0 @@ return Array.from(v);

@@ -260,5 +260,5 @@ import FSymbol from "./Symbol";

const iter = fields[Symbol.iterator]();
let cur = iter.next(), o = {}, value = null, cases = null, caseInfo = null, key = null;
let cur = iter.next(), o = {}, casesCache = null;
while (!cur.done) {
value = cur.value;
let value = cur.value;
if (Array.isArray(value)) {

@@ -268,7 +268,13 @@ o[value[0]] = value[1];

else {
if (cases == null && typeof value[FSymbol.reflection] === "function") {
cases = value[FSymbol.reflection]().cases;
casesCache = casesCache || new Map();
let proto = Object.getPrototypeOf(value);
let cases = casesCache.get(proto), caseInfo = null;
if (cases == null) {
if (typeof proto[FSymbol.reflection] === "function") {
cases = proto[FSymbol.reflection]().cases;
casesCache.set(proto, cases);
}
}
if (cases != null && Array.isArray(caseInfo = cases[value.tag])) {
key = caseInfo[0];
let key = caseInfo[0];
if (caseRule === CaseRules.LowerFirst) {

@@ -275,0 +281,0 @@ key = key[0].toLowerCase() + key.substr(1);

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