@thirdweb-dev/service-utils 0.2.0 → 0.2.1-nightly-da95dce5-20230718215024

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.
@@ -68,7 +68,7 @@ async function extractAuthorizationData(authInput) {
68
68
  // if we have an origin at this point, normalize it
69
69
  if (origin) {
70
70
  try {
71
- origin = new URL(origin).hostname;
71
+ origin = new URL(origin).host;
72
72
  } catch (e) {
73
73
  console.warn("failed to parse origin", origin, e);
74
74
  }
@@ -68,7 +68,7 @@ async function extractAuthorizationData(authInput) {
68
68
  // if we have an origin at this point, normalize it
69
69
  if (origin) {
70
70
  try {
71
- origin = new URL(origin).hostname;
71
+ origin = new URL(origin).host;
72
72
  } catch (e) {
73
73
  console.warn("failed to parse origin", origin, e);
74
74
  }
@@ -64,7 +64,7 @@ async function extractAuthorizationData(authInput) {
64
64
  // if we have an origin at this point, normalize it
65
65
  if (origin) {
66
66
  try {
67
- origin = new URL(origin).hostname;
67
+ origin = new URL(origin).host;
68
68
  } catch (e) {
69
69
  console.warn("failed to parse origin", origin, e);
70
70
  }
@@ -71,7 +71,7 @@ function extractAuthorizationData(authInput) {
71
71
  // if we have an origin at this point, normalize it
72
72
  if (origin) {
73
73
  try {
74
- origin = new URL(origin).hostname;
74
+ origin = new URL(origin).host;
75
75
  } catch (e) {
76
76
  console.warn("failed to parse origin", origin, e);
77
77
  }
@@ -71,7 +71,7 @@ function extractAuthorizationData(authInput) {
71
71
  // if we have an origin at this point, normalize it
72
72
  if (origin) {
73
73
  try {
74
- origin = new URL(origin).hostname;
74
+ origin = new URL(origin).host;
75
75
  } catch (e) {
76
76
  console.warn("failed to parse origin", origin, e);
77
77
  }
@@ -67,7 +67,7 @@ function extractAuthorizationData(authInput) {
67
67
  // if we have an origin at this point, normalize it
68
68
  if (origin) {
69
69
  try {
70
- origin = new URL(origin).hostname;
70
+ origin = new URL(origin).host;
71
71
  } catch (e) {
72
72
  console.warn("failed to parse origin", origin, e);
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdweb-dev/service-utils",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-nightly-da95dce5-20230718215024",
4
4
  "main": "dist/thirdweb-dev-service-utils.cjs.js",
5
5
  "module": "dist/thirdweb-dev-service-utils.esm.js",
6
6
  "exports": {
@@ -46,7 +46,7 @@
46
46
  "@types/node": "^20.4.1",
47
47
  "@typescript-eslint/eslint-plugin": "^6.0.0",
48
48
  "@typescript-eslint/parser": "^6.0.0",
49
- "eslint": "^8.44.0",
49
+ "eslint": "^8.45.0",
50
50
  "eslint-config-prettier": "^8.8.0",
51
51
  "eslint-config-thirdweb": "^0.1.5",
52
52
  "jest": "^29.4.3",