@liveblocks/infer-schema
Advanced tools
Comparing version 0.0.11-beta2 to 0.0.11-beta3
@@ -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" |
21080
640
+ Added@liveblocks/schema@0.0.11-beta3(transitive)
- Removed@liveblocks/schema@0.0.11-beta2(transitive)