@superblocksteam/util 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ exports.getBucketeerUrlFromSuperblocksUrl = void 0;
4
4
  const lodash_1 = require("lodash");
5
5
  // retrieves bucketeer base URL given the superblocks server base URL
6
6
  const getBucketeerUrlFromSuperblocksUrl = (superblocksBaseUrl) => {
7
- superblocksBaseUrl = superblocksBaseUrl.replace(/\/$/, "");
8
7
  // if superblocks base URL is an EE, return bucketeer's dev URL
9
8
  if (!(0, lodash_1.isEmpty)(superblocksBaseUrl.match(new RegExp("pr-.*.superblocks.dev")))) {
10
9
  return "https://bucketeer.dev.superblocks.com";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/util",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "main": "dist/index.js",
5
5
  "homepage": "https://www.superblocks.com",
6
6
  "scripts": {
@@ -4,7 +4,6 @@ import { isEmpty } from "lodash";
4
4
  export const getBucketeerUrlFromSuperblocksUrl = (
5
5
  superblocksBaseUrl: string
6
6
  ): string => {
7
- superblocksBaseUrl = superblocksBaseUrl.replace(/\/$/, "");
8
7
  // if superblocks base URL is an EE, return bucketeer's dev URL
9
8
  if (!isEmpty(superblocksBaseUrl.match(new RegExp("pr-.*.superblocks.dev")))) {
10
9
  return "https://bucketeer.dev.superblocks.com";