Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Apr 27, 2022
1 parent 9b71ac5 commit 7525272
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hammer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { compilePackage, packPackage } from './build/index'
// Packages
// -------------------------------------------------------------

const version = '0.8.71'
const version = '0.8.72'
const packages = [
['async', version, 'Sidewinder Async'],
['buffer', version, 'Sidewinder Buffer'],
Expand Down
4 changes: 2 additions & 2 deletions libs/config/descriptors/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/

import { TObject, TSchema } from '@sidewinder/type'
import { TObject, TSchema, Kind } from '@sidewinder/type'

export interface Descriptor {
pointer: string
Expand All @@ -53,7 +53,7 @@ export namespace Descriptors {
}

function* visit(path: string, name: string, schema: TSchema, options: DescriptorOptions): Iterable<Descriptor> {
switch (schema.kind) {
switch (schema[Kind]) {
case 'Object':
return yield* object(path, name, schema, options)
case 'Number':
Expand Down
4 changes: 2 additions & 2 deletions libs/config/documentation/documentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------*/

import { TObject, TSchema } from '@sidewinder/type'
import { TObject, TSchema, Kind } from '@sidewinder/type'

export namespace Documentation {
function argName(path: string[]) {
Expand Down Expand Up @@ -68,7 +68,7 @@ export namespace Documentation {
}

function* visit(key: string, path: string[], schema: TSchema): Iterable<string> {
switch (schema.kind) {
switch (schema[Kind]) {
case 'Object':
return yield* object(key, path, schema)
case 'Number':
Expand Down
2 changes: 1 addition & 1 deletion libs/value/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export namespace CheckValue {
case 'Void':
return Void(anySchema, value)
default:
throw Error(`Unknown schema kind '${schema.kind}'`)
throw Error(`Unknown schema kind '${schema[Types.Kind]}'`)
}
}
}
2 changes: 1 addition & 1 deletion libs/value/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export namespace CreateValue {
case 'Self':
return undefined // TODO: Consider tracking dynamicRef
default:
throw Error(`Unknown schema kind '${schema.kind}'`)
throw Error(`Unknown schema kind '${schema[Types.Kind]}'`)
}
}
}
2 changes: 1 addition & 1 deletion libs/value/upcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export namespace UpcastValue {
case 'Void':
return Void(anySchema, value)
default:
throw Error(`Unknown schema kind '${schema.kind}'`)
throw Error(`Unknown schema kind '${schema[Types.Kind]}'`)
}
}
}

0 comments on commit 7525272

Please sign in to comment.