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

@liveblocks/infer-schema

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/infer-schema - npm Package Compare versions

Comparing version 0.0.11-beta2 to 0.0.11-beta3

9

dist/index.js

@@ -159,3 +159,4 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// src/index.ts

"Integer",
"Float"
"Float",
"Null"
]);

@@ -213,5 +214,7 @@ function mergeInferredScalarTypes(a, b) {

case "Integer":
return _schema2.AST.intType();
return _schema2.AST.numberType();
case "Float":
return _schema2.AST.floatType();
return _schema2.AST.numberType();
case "Null":
return _schema2.AST.nullType();
}

@@ -218,0 +221,0 @@ }

{
"name": "@liveblocks/infer-schema",
"version": "0.0.11-beta2",
"version": "0.0.11-beta3",
"description": "Helper to infer a Liveblocks schema from plain LSON data",

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

"@liveblocks/core": "^1.0.0",
"@liveblocks/schema": "0.0.11-beta2",
"@liveblocks/schema": "0.0.11-beta3",
"decoders": "^2.0.3",

@@ -41,0 +41,0 @@ "pluralize": "^8.0.0"

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