Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@edenjs/b2

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edenjs/b2 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

13

bundles/backblaze/transports/b2.js

@@ -69,5 +69,2 @@ // Require base

// save if no id
if (!asset.get('_id')) await asset.save();
// get upload url

@@ -82,3 +79,3 @@ const uploadUrl = await this.store.getUploadUrl({

// Set path
asset.set('path', `${date}-${asset.get('_id')}`);
asset.set('path', `${date}/${asset.get('hash')}`);

@@ -92,4 +89,4 @@ // await

info : {
id : asset.get('_id'),
str : date,
str : date,
hash : asset.get('hash'),
},

@@ -101,3 +98,3 @@ onUploadProgress : (event) => {}, // progress monitoring

// set b2 info
asset.set(`${label ? `${label}.` : ''}b2`, data);
asset.set(`${label ? `thumbs.${label}.` : ''}b2`, data);
}

@@ -139,3 +136,3 @@

await this.store.deleteFileVersion({
fileId : asset.get(`${label ? `${label}.` : ''}b2.fileId`),
fileId : asset.get(`${label ? `thumbs.${label}.` : ''}b2.fileId`),
fileName : `${asset.get('path')}/${label ? `${label}.${asset.get(`thumbs.${label}.ext`)}` : `full.${asset.get('ext')}`}`

@@ -142,0 +139,0 @@ });

{
"name": "@edenjs/b2",
"description": "nothing yet",
"version": "1.0.0",
"version": "1.0.1",
"dependencies": {

@@ -6,0 +6,0 @@ "backblaze-b2": "^1.3.1"

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