Comparing version 1.0.0-beta.12 to 1.0.0-beta.15
@@ -7,2 +7,3 @@ "use strict"; | ||
var transaction_1 = require("@iota/transaction"); | ||
require("core-js"); | ||
var querystring = require("querystring"); | ||
@@ -9,0 +10,0 @@ var errors = require("../../errors"); |
@@ -225,3 +225,3 @@ "use strict"; | ||
if (!isValid(value)) { | ||
throw new Error(msg + ": " + value); | ||
throw new Error(msg + ": " + JSON.stringify(value, null, 1)); | ||
} | ||
@@ -298,2 +298,5 @@ } | ||
]; }; | ||
exports.stringify = function (value) { | ||
return JSON.stringify(value, null, 1); | ||
}; | ||
//# sourceMappingURL=guards.js.map |
@@ -34,2 +34,21 @@ "use strict"; | ||
}; }; // tslint:disable-line prefer-object-spread | ||
var PersistenceEvents; | ||
(function (PersistenceEvents) { | ||
PersistenceEvents["writeBundle"] = "writeBundle"; | ||
PersistenceEvents["deleteBundle"] = "deleteBundle"; | ||
PersistenceEvents["writeCDA"] = "writeCDA"; | ||
PersistenceEvents["deleteCDA"] = "deleteCDA"; | ||
})(PersistenceEvents = exports.PersistenceEvents || (exports.PersistenceEvents = {})); | ||
var PersistenceBatchTypes; | ||
(function (PersistenceBatchTypes) { | ||
PersistenceBatchTypes["writeBundle"] = "writeBundle"; | ||
PersistenceBatchTypes["deleteBundle"] = "deleteBundle"; | ||
PersistenceBatchTypes["writeCDA"] = "writeCDA"; | ||
PersistenceBatchTypes["deleteCDA"] = "delteCDA"; | ||
})(PersistenceBatchTypes = exports.PersistenceBatchTypes || (exports.PersistenceBatchTypes = {})); | ||
var PersistenceAdapterBatchTypes; | ||
(function (PersistenceAdapterBatchTypes) { | ||
PersistenceAdapterBatchTypes["write"] = "write"; | ||
PersistenceAdapterBatchTypes["delete"] = "delete"; | ||
})(PersistenceAdapterBatchTypes = exports.PersistenceAdapterBatchTypes || (exports.PersistenceAdapterBatchTypes = {})); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@iota/cda", | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.15", | ||
"description": "Conditional Deposit Addresses - (timeout_at, multi_use, expected_amount)", | ||
@@ -54,7 +54,7 @@ "main": "out/cda/src/cda.js", | ||
"dependencies": { | ||
"@iota/converter": "^1.0.0-beta.12", | ||
"@iota/curl": "^1.0.0-beta.12", | ||
"@iota/pad": "^1.0.0-beta.12", | ||
"@iota/signing": "^1.0.0-beta.12", | ||
"@iota/transaction": "^1.0.0-beta.12" | ||
"@iota/converter": "^1.0.0-beta.15", | ||
"@iota/curl": "^1.0.0-beta.15", | ||
"@iota/pad": "^1.0.0-beta.15", | ||
"@iota/signing": "^1.0.0-beta.15", | ||
"@iota/transaction": "^1.0.0-beta.15" | ||
}, | ||
@@ -65,3 +65,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "0777d33f7a01a2751b570774e917ce5e2485cd40" | ||
"gitHead": "fe5e4a44530c27a5cd5d1d65aaf79b49aa2be3cd" | ||
} |
@@ -5,2 +5,3 @@ import { tritsToTrytes, tritsToValue, trytesToTrits, valueToTrits } from '@iota/converter' | ||
import { ADDRESS_LENGTH, VALUE_LENGTH } from '@iota/transaction' | ||
import 'core-js' | ||
import * as querystring from 'querystring' | ||
@@ -7,0 +8,0 @@ import * as errors from '../../errors' |
@@ -0,1 +1,2 @@ | ||
import 'core-js'; | ||
import { Trytes } from '../../types'; | ||
@@ -2,0 +3,0 @@ export interface AbstractCDA { |
@@ -173,1 +173,2 @@ import { Address, Hash, Transfer } from './types'; | ||
export declare const getBalancesThresholdValidator: Validator<number>; | ||
export declare const stringify: (value: any) => string; |
@@ -265,15 +265,19 @@ /// <reference types="node" /> | ||
readonly batch: (ops: ReadonlyArray<PersistenceBatch<T>>) => Promise<void>; | ||
readonly stateRead: (key: B) => Promise<B>; | ||
readonly stateWrite: (key: B, value: B) => Promise<void>; | ||
readonly stateDelete: (key: B) => Promise<B>; | ||
readonly stateBatch: (ops: ReadonlyArray<PersistenceAdapterBatch<B, B>>) => Promise<void>; | ||
readonly createStateReadStream: (options?: PersistenceIteratorOptions) => NodeJS.ReadableStream; | ||
readonly historyRead: (key: B) => Promise<B>; | ||
readonly historyWrite: (key: B, value: B) => Promise<void>; | ||
readonly historyDelete: (key: B) => Promise<void>; | ||
readonly historyBatch: (ops: ReadonlyArray<PersistenceAdapterBatch<B, B>>) => Promise<void>; | ||
readonly createHistoryReadStream: (options?: PersistenceIteratorOptions) => NodeJS.ReadableStream; | ||
readonly state: PersistenceAdapter<B, B>; | ||
readonly history: PersistenceAdapter<B, B>; | ||
} | ||
export declare enum PersistenceEvents { | ||
writeBundle = "writeBundle", | ||
deleteBundle = "deleteBundle", | ||
writeCDA = "writeCDA", | ||
deleteCDA = "deleteCDA" | ||
} | ||
export declare enum PersistenceBatchTypes { | ||
writeBundle = "writeBundle", | ||
deleteBundle = "deleteBundle", | ||
writeCDA = "writeCDA", | ||
deleteCDA = "delteCDA" | ||
} | ||
export interface PersistenceBatch<V = Int8Array> { | ||
readonly type: 'writeBundle' | 'deleteBundle' | 'writeCDA' | 'deleteCDA'; | ||
readonly type: PersistenceBatchTypes.writeBundle | PersistenceBatchTypes.deleteBundle | PersistenceBatchTypes.writeCDA | PersistenceBatchTypes.deleteCDA; | ||
readonly value: V; | ||
@@ -293,6 +297,12 @@ } | ||
readonly createReadStream: (options?: PersistenceIteratorOptions) => NodeJS.ReadableStream; | ||
readonly close: () => Promise<void>; | ||
readonly open: () => Promise<void>; | ||
} | ||
export declare type PersistenceAdapterBatch<K = Buffer, V = Buffer> = PersistenceAdapterWriteOp<K, V> | PersistenceAdapterDeleteOp<K>; | ||
export declare enum PersistenceAdapterBatchTypes { | ||
write = "write", | ||
delete = "delete" | ||
} | ||
export interface PersistenceAdapterWriteOp<K = Buffer, V = Buffer> { | ||
readonly type: 'write'; | ||
readonly type: PersistenceAdapterBatchTypes.write; | ||
readonly key: K; | ||
@@ -302,3 +312,3 @@ readonly value: V; | ||
export interface PersistenceAdapterDeleteOp<K = Buffer> { | ||
readonly type: 'delete'; | ||
readonly type: PersistenceAdapterBatchTypes.delete; | ||
readonly key: K; | ||
@@ -305,0 +315,0 @@ } |
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
157007
26
2197
Updated@iota/curl@^1.0.0-beta.15
Updated@iota/pad@^1.0.0-beta.15
Updated@iota/signing@^1.0.0-beta.15