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

biiif

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biiif - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

2

package.json
{
"name": "biiif",
"version": "0.1.10",
"version": "0.1.11",
"description": "A CLI to build IIIF collections",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -62,3 +62,11 @@ "use strict";

// the final path is the url origin plus a reversed newPath joined with a '/'
const urlParts = url.href.replace(url.origin + '/', '').split('/');
let origin = url.origin;
let urlParts;
if (url.protocol === 'dat:') {
origin = 'dat://';
urlParts = url.href.replace(origin, '').split('/');
}
else {
urlParts = url.href.replace(origin + '/', '').split('/');
}
filePath = filePath.replace(/\\/g, '/');

@@ -85,3 +93,3 @@ const fileParts = filePath.split('/');

}
let id = urljoin(url.origin, ...newPath.reverse());
let id = urljoin(origin, ...newPath.reverse());
return id;

@@ -88,0 +96,0 @@ }

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