New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datastore-s3

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datastore-s3 - npm Package Compare versions

Comparing version 11.1.12 to 12.0.0

3

dist/src/index.d.ts

@@ -34,4 +34,5 @@ /**

import { BaseDatastore } from 'datastore-core/base';
import { Key, type KeyQuery, type Pair, type Query } from 'interface-datastore';
import { Key } from 'interface-datastore';
import type { S3 } from '@aws-sdk/client-s3';
import type { KeyQuery, Pair, Query } from 'interface-datastore';
import type { AbortOptions } from 'interface-store';

@@ -38,0 +39,0 @@ export interface S3DatastoreInit {

@@ -35,4 +35,4 @@ /**

import { BaseDatastore } from 'datastore-core/base';
import * as Errors from 'datastore-core/errors';
import { Key } from 'interface-datastore';
import { DeleteFailedError, GetFailedError, HasFailedError, NotFoundError, OpenFailedError, PutFailedError } from 'interface-store';
import filter from 'it-filter';

@@ -84,3 +84,3 @@ import toBuffer from 'it-to-buffer';

catch (err) {
throw Errors.dbWriteFailedError(err);
throw new PutFailedError(String(err));
}

@@ -119,5 +119,5 @@ }

if (err.statusCode === 404) {
throw Errors.notFoundError(err);
throw new NotFoundError(String(err));
}
throw err;
throw new GetFailedError(String(err));
}

@@ -147,3 +147,3 @@ }

}
throw err;
throw new HasFailedError(String(err));
}

@@ -164,3 +164,3 @@ }

catch (err) {
throw Errors.dbDeleteFailedError(err);
throw new DeleteFailedError(String(err));
}

@@ -201,3 +201,3 @@ }

catch (err) {
throw new Error(err.code);
throw new GetFailedError(String(err));
}

@@ -216,3 +216,3 @@ }

// key was deleted while we are iterating over the results
if (err.statusCode !== 404) {
if (err.name !== 'NotFoundError') {
throw err;

@@ -256,3 +256,3 @@ }

}
throw Errors.dbOpenFailedError(err);
throw new OpenFailedError(String(err));
}

@@ -259,0 +259,0 @@ }

{
"name": "datastore-s3",
"version": "11.1.12",
"version": "12.0.0",
"description": "IPFS datastore implementation backed by s3",

@@ -62,5 +62,5 @@ "license": "Apache-2.0 OR MIT",

"@aws-sdk/client-s3": "^3.511.0",
"datastore-core": "^9.0.0",
"datastore-core": "10.0.0",
"interface-datastore": "^8.0.0",
"interface-store": "^5.0.0",
"interface-store": "6.0.0",
"it-filter": "^3.0.4",

@@ -73,3 +73,3 @@ "it-to-buffer": "^4.0.5",

"aegir": "^42.2.3",
"interface-datastore-tests": "^5.0.0",
"interface-datastore-tests": "6.0.0",
"p-defer": "^4.0.0",

@@ -76,0 +76,0 @@ "sinon": "^18.0.0"

@@ -43,4 +43,4 @@ /**

import { BaseDatastore } from 'datastore-core/base'
import * as Errors from 'datastore-core/errors'
import { Key, type KeyQuery, type Pair, type Query } from 'interface-datastore'
import { Key } from 'interface-datastore'
import { DeleteFailedError, GetFailedError, HasFailedError, NotFoundError, OpenFailedError, PutFailedError } from 'interface-store'
import filter from 'it-filter'

@@ -50,2 +50,3 @@ import toBuffer from 'it-to-buffer'

import type { S3 } from '@aws-sdk/client-s3'
import type { KeyQuery, Pair, Query } from 'interface-datastore'
import type { AbortOptions } from 'interface-store'

@@ -122,3 +123,3 @@

} catch (err: any) {
throw Errors.dbWriteFailedError(err)
throw new PutFailedError(String(err))
}

@@ -165,5 +166,6 @@ }

if (err.statusCode === 404) {
throw Errors.notFoundError(err)
throw new NotFoundError(String(err))
}
throw err
throw new GetFailedError(String(err))
}

@@ -198,3 +200,3 @@ }

throw err
throw new HasFailedError(String(err))
}

@@ -217,3 +219,3 @@ }

} catch (err: any) {
throw Errors.dbDeleteFailedError(err)
throw new DeleteFailedError(String(err))
}

@@ -262,3 +264,3 @@ }

} catch (err: any) {
throw new Error(err.code)
throw new GetFailedError(String(err))
}

@@ -278,3 +280,3 @@ }

// key was deleted while we are iterating over the results
if (err.statusCode !== 404) {
if (err.name !== 'NotFoundError') {
throw err

@@ -327,3 +329,3 @@ }

throw Errors.dbOpenFailedError(err)
throw new OpenFailedError(String(err))
}

@@ -330,0 +332,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc