@es-git/core
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -26,10 +26,9 @@ export { decode, encode, concat, flatten, fromDec, fromHex, fromOct, fromDecChar, fromHexChar, packHash, unpackHash, toHexChar, NEWLINE } from './utils'; | ||
export interface IRawRepo { | ||
listRefs(): Promise<Hash[]>; | ||
listRefs(): Promise<string[]>; | ||
getRef(ref: string): Promise<Hash | undefined>; | ||
setRef(ref: string, hash: Hash): Promise<void>; | ||
deleteRef(ref: string): Promise<void>; | ||
setRef(ref: string, hash: Hash | undefined): Promise<void>; | ||
saveRaw(hash: Hash, object: Uint8Array): Promise<void>; | ||
loadRaw(hash: Hash): Promise<Uint8Array | undefined>; | ||
hasObject(hash: Hash): Promise<boolean>; | ||
saveMetadata(name: string, value: Uint8Array): Promise<void>; | ||
saveMetadata(name: string, value: Uint8Array | undefined): Promise<void>; | ||
loadMetadata(name: string): Promise<Uint8Array | undefined>; | ||
@@ -36,0 +35,0 @@ } |
{ | ||
"name": "@es-git/core", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
@@ -56,10 +56,9 @@ export { | ||
export interface IRawRepo { | ||
listRefs() : Promise<Hash[]> | ||
listRefs() : Promise<string[]> | ||
getRef(ref : string) : Promise<Hash | undefined> | ||
setRef(ref : string, hash : Hash) : Promise<void> | ||
deleteRef(ref : string) : Promise<void> | ||
setRef(ref : string, hash : Hash | undefined) : Promise<void> | ||
saveRaw(hash : Hash, object : Uint8Array) : Promise<void> | ||
loadRaw(hash : Hash) : Promise<Uint8Array | undefined> | ||
hasObject(hash : Hash) : Promise<boolean> | ||
saveMetadata(name : string, value : Uint8Array) : Promise<void> | ||
saveMetadata(name : string, value : Uint8Array | undefined) : Promise<void> | ||
loadMetadata(name : string) : Promise<Uint8Array | undefined> | ||
@@ -66,0 +65,0 @@ } |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
74229
31
1
65
862