@arsonar/common
Advanced tools
Comparing version 0.6.0-alpha.4 to 0.6.0-alpha.5
@@ -1,13 +0,14 @@ | ||
import type { Logger } from './log.js'; | ||
export { Schema, TypeSpecInput } from './schema.js'; | ||
export type { Field, FieldSpec, FieldSpecInput } from './field.js'; | ||
export { RecordVersion } from './record/version.js'; | ||
export { Schema } from './schema.js'; | ||
export { Store } from './store.js'; | ||
export { Entity } from './record/entity'; | ||
export { Record } from './record/record'; | ||
export { RecordVersion, WireRecordVersion, RecordVersionForm } from './record/version'; | ||
export { Entity } from './record/entity.js'; | ||
export { Record } from './record/record.js'; | ||
export { Type } from './type.js'; | ||
export { createLogger } from './log.js'; | ||
export type { Logger }; | ||
export { parseSchemaPath, encodeSchemaPath } from './address'; | ||
export type { TypeSpecInput } from './schema.js'; | ||
export type { Field, FieldSpec, FieldSpecInput } from './field.js'; | ||
export type { Logger } from './log.js'; | ||
export type { JSONSchema4, JSONSchema4TypeName, JSONSchema4Type } from 'json-schema'; | ||
export type { WireRecordVersion, RecordVersionForm, RecordValue, FieldValue } from './record/version.js'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encodeSchemaPath = exports.parseSchemaPath = exports.createLogger = exports.Type = exports.RecordVersion = exports.Record = exports.Entity = exports.Store = exports.Schema = void 0; | ||
exports.encodeSchemaPath = exports.parseSchemaPath = exports.createLogger = exports.Type = exports.Record = exports.Entity = exports.Store = exports.Schema = exports.RecordVersion = void 0; | ||
var version_js_1 = require("./record/version.js"); | ||
Object.defineProperty(exports, "RecordVersion", { enumerable: true, get: function () { return version_js_1.RecordVersion; } }); | ||
var schema_js_1 = require("./schema.js"); | ||
@@ -8,8 +10,6 @@ Object.defineProperty(exports, "Schema", { enumerable: true, get: function () { return schema_js_1.Schema; } }); | ||
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_js_1.Store; } }); | ||
var entity_1 = require("./record/entity"); | ||
Object.defineProperty(exports, "Entity", { enumerable: true, get: function () { return entity_1.Entity; } }); | ||
var record_1 = require("./record/record"); | ||
Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return record_1.Record; } }); | ||
var version_1 = require("./record/version"); | ||
Object.defineProperty(exports, "RecordVersion", { enumerable: true, get: function () { return version_1.RecordVersion; } }); | ||
var entity_js_1 = require("./record/entity.js"); | ||
Object.defineProperty(exports, "Entity", { enumerable: true, get: function () { return entity_js_1.Entity; } }); | ||
var record_js_1 = require("./record/record.js"); | ||
Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return record_js_1.Record; } }); | ||
var type_js_1 = require("./type.js"); | ||
@@ -16,0 +16,0 @@ Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return type_js_1.Type; } }); |
@@ -1,4 +0,4 @@ | ||
import { SchemaMember } from '../base'; | ||
import { Schema } from '../schema'; | ||
import { RecordVersion, WireRecordVersion, RecordValue, FieldValue } from './version'; | ||
import { SchemaMember } from '../base.js'; | ||
import { Schema } from '../schema.js'; | ||
import { RecordVersion, WireRecordVersion, RecordValue, FieldValue } from './version.js'; | ||
import Versions from '../versions.js'; | ||
@@ -34,6 +34,6 @@ import { Emitter, EmitCb } from '../emitter'; | ||
update(nextValue: RecordValue): RecordVersion; | ||
getType(): import("..").Type | undefined; | ||
getType(): import("../type.js").Type | undefined; | ||
hasType(typeAddress: string): boolean; | ||
hasField(fieldName: string): boolean; | ||
getField(fieldName: string): import("..").Field | undefined; | ||
getField(fieldName: string): import("../field.js").Field | undefined; | ||
getOne(fieldName: string): any; | ||
@@ -40,0 +40,0 @@ getMany(fieldName: string): any[]; |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.Record = void 0; | ||
const base_1 = require("../base"); | ||
const version_1 = require("./version"); | ||
const base_js_1 = require("../base.js"); | ||
const version_js_1 = require("./version.js"); | ||
const versions_js_1 = __importDefault(require("../versions.js")); | ||
@@ -15,3 +15,3 @@ const emitter_1 = require("../emitter"); | ||
const inspect_1 = require("../util/inspect"); | ||
class Record extends base_1.SchemaMember { | ||
class Record extends base_js_1.SchemaMember { | ||
constructor(schema, initialVersion) { | ||
@@ -37,4 +37,4 @@ super(schema); | ||
addVersion(recordVersion) { | ||
if (!(recordVersion instanceof version_1.RecordVersion)) { | ||
recordVersion = new version_1.RecordVersion(this[symbols_1.SC], recordVersion); | ||
if (!(recordVersion instanceof version_js_1.RecordVersion)) { | ||
recordVersion = new version_js_1.RecordVersion(this[symbols_1.SC], recordVersion); | ||
} | ||
@@ -41,0 +41,0 @@ if (!this._id) { |
@@ -1,13 +0,14 @@ | ||
import type { Logger } from './log.js'; | ||
export { Schema, TypeSpecInput } from './schema.js'; | ||
export type { Field, FieldSpec, FieldSpecInput } from './field.js'; | ||
export { RecordVersion } from './record/version.js'; | ||
export { Schema } from './schema.js'; | ||
export { Store } from './store.js'; | ||
export { Entity } from './record/entity'; | ||
export { Record } from './record/record'; | ||
export { RecordVersion, WireRecordVersion, RecordVersionForm } from './record/version'; | ||
export { Entity } from './record/entity.js'; | ||
export { Record } from './record/record.js'; | ||
export { Type } from './type.js'; | ||
export { createLogger } from './log.js'; | ||
export type { Logger }; | ||
export { parseSchemaPath, encodeSchemaPath } from './address'; | ||
export type { TypeSpecInput } from './schema.js'; | ||
export type { Field, FieldSpec, FieldSpecInput } from './field.js'; | ||
export type { Logger } from './log.js'; | ||
export type { JSONSchema4, JSONSchema4TypeName, JSONSchema4Type } from 'json-schema'; | ||
export type { WireRecordVersion, RecordVersionForm, RecordValue, FieldValue } from './record/version.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,6 +1,6 @@ | ||
export { RecordVersion } from './record/version.js'; | ||
export { Schema } from './schema.js'; | ||
export { Store } from './store.js'; | ||
export { Entity } from './record/entity'; | ||
export { Record } from './record/record'; | ||
export { RecordVersion } from './record/version'; | ||
export { Entity } from './record/entity.js'; | ||
export { Record } from './record/record.js'; | ||
export { Type } from './type.js'; | ||
@@ -7,0 +7,0 @@ export { createLogger } from './log.js'; |
@@ -1,4 +0,4 @@ | ||
import { SchemaMember } from '../base'; | ||
import { Schema } from '../schema'; | ||
import { RecordVersion, WireRecordVersion, RecordValue, FieldValue } from './version'; | ||
import { SchemaMember } from '../base.js'; | ||
import { Schema } from '../schema.js'; | ||
import { RecordVersion, WireRecordVersion, RecordValue, FieldValue } from './version.js'; | ||
import Versions from '../versions.js'; | ||
@@ -34,6 +34,6 @@ import { Emitter, EmitCb } from '../emitter'; | ||
update(nextValue: RecordValue): RecordVersion; | ||
getType(): import("..").Type | undefined; | ||
getType(): import("../type.js").Type | undefined; | ||
hasType(typeAddress: string): boolean; | ||
hasField(fieldName: string): boolean; | ||
getField(fieldName: string): import("..").Field | undefined; | ||
getField(fieldName: string): import("../field.js").Field | undefined; | ||
getOne(fieldName: string): any; | ||
@@ -40,0 +40,0 @@ getMany(fieldName: string): any[]; |
@@ -1,3 +0,3 @@ | ||
import { SchemaMember } from '../base'; | ||
import { RecordVersion } from './version'; | ||
import { SchemaMember } from '../base.js'; | ||
import { RecordVersion } from './version.js'; | ||
import Versions from '../versions.js'; | ||
@@ -4,0 +4,0 @@ import { Emitter } from '../emitter'; |
@@ -1,12 +0,14 @@ | ||
import type { Logger } from './log.js' | ||
export { Schema, TypeSpecInput } from './schema.js' | ||
export type { Field, FieldSpec, FieldSpecInput } from './field.js' | ||
export { RecordVersion } from './record/version.js' | ||
export { Schema } from './schema.js' | ||
export { Store } from './store.js' | ||
export { Entity } from './record/entity' | ||
export { Record } from './record/record' | ||
export { RecordVersion, WireRecordVersion, RecordVersionForm } from './record/version' | ||
export { Entity } from './record/entity.js' | ||
export { Record } from './record/record.js' | ||
export { Type } from './type.js' | ||
export { createLogger } from './log.js' | ||
export type { Logger } | ||
export { parseSchemaPath, encodeSchemaPath } from './address' | ||
export type { TypeSpecInput } from './schema.js' | ||
export type { Field, FieldSpec, FieldSpecInput } from './field.js' | ||
export type { Logger } from './log.js' | ||
export type { JSONSchema4, JSONSchema4TypeName, JSONSchema4Type } from 'json-schema' | ||
export type { WireRecordVersion, RecordVersionForm, RecordValue, FieldValue } from './record/version.js' |
@@ -1,4 +0,4 @@ | ||
import { SchemaMember } from '../base' | ||
import { Schema } from '../schema' | ||
import { RecordVersion, WireRecordVersion, RecordValue, FieldValue } from './version' | ||
import { SchemaMember } from '../base.js' | ||
import { Schema } from '../schema.js' | ||
import { RecordVersion, WireRecordVersion, RecordValue, FieldValue } from './version.js' | ||
import Versions from '../versions.js' | ||
@@ -5,0 +5,0 @@ import { Emitter, EmitCb } from '../emitter' |
{ | ||
"name": "@arsonar/common", | ||
"version": "0.6.0-alpha.4", | ||
"version": "0.6.0-alpha.5", | ||
"main": "dist/cjs", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
332706
5623