You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@es-git/core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

readme.md

7

es/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc