mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-24 18:59:02 -06:00
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@attic/noms",
|
||||
"license": "Apache-2.0",
|
||||
"version": "65.4.0",
|
||||
"version": "65.4.1",
|
||||
"description": "Noms JS SDK",
|
||||
"repository": "https://github.com/attic-labs/noms/tree/master/js/noms",
|
||||
"main": "dist/commonjs/noms.js",
|
||||
|
||||
@@ -8,7 +8,7 @@ import Ref from './ref.js';
|
||||
import type {NomsKind} from './noms-kind.js';
|
||||
import type Hash from './hash.js';
|
||||
import {invariant, notNull} from './assert.js';
|
||||
import {isPrimitiveKind, Kind} from './noms-kind.js';
|
||||
import {Kind} from './noms-kind.js';
|
||||
import {ValueBase} from './value.js';
|
||||
import type Value from './value.js';
|
||||
import {describeType} from './encode-human-readable.js';
|
||||
@@ -250,7 +250,6 @@ export function makeCycleType(level: number): Type<any> {
|
||||
* Gives the existing primitive Type value for a NomsKind.
|
||||
*/
|
||||
export function getPrimitiveType(k: NomsKind): Type<any> {
|
||||
invariant(isPrimitiveKind(k));
|
||||
switch (k) {
|
||||
case Kind.Bool:
|
||||
return boolType;
|
||||
|
||||
@@ -73,7 +73,6 @@ export default class ValueDecoder {
|
||||
}
|
||||
}
|
||||
|
||||
invariant(isPrimitiveKind(k));
|
||||
return getPrimitiveType(k);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user