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

bahai-reflib-data-server

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahai-reflib-data-server - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

4

CHANGES.md
# CHANGES for `bahai-reflib-data-server`
## 0.8.0
- feat: allow `redirectHandler` for custom redirecting
## 0.7.1

@@ -4,0 +8,0 @@

2

package.json
{
"name": "bahai-reflib-data-server",
"version": "0.7.1",
"version": "0.8.0",
"author": "Brett Zamir <brettz9@yahoo.com>",

@@ -5,0 +5,0 @@ "contributors": [],

@@ -64,3 +64,4 @@ import '../components/fetch-select.js';

* subsectionUrlForWorkFetch: JsonFetcher,
* urlForWorkFetch: JsonFetcher
* urlForWorkFetch: JsonFetcher,
* redirectHandler: (string) => void
* }} obj

@@ -72,4 +73,7 @@ * @returns {ChooseWorkSectionParagraph}

urlForIdFetch, idForWorkSectionAndParagraphFetch,
subsectionUrlForWorkFetch, urlForWorkFetch
subsectionUrlForWorkFetch, urlForWorkFetch, redirectHandler
} = {}) {
const redirector = redirectHandler || ((str) => {
location.href = str;
});
/**

@@ -237,3 +241,3 @@ *

}
location.href = url;
redirector(url);
return;

@@ -285,3 +289,3 @@ }

if (redirect) {
location.href = `https://bahai.org/r/${id}`;
redirector(`https://bahai.org/r/${id}`);
} else {

@@ -342,3 +346,3 @@ this.id = id;

location.href = url;
redirector(url);
}

@@ -345,0 +349,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