@snapshot-labs/snapshot.js 0.12.25 → 0.12.26

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.
@@ -809,6 +809,7 @@ declare const _default: {
809
809
  "8453": string;
810
810
  "42161": string;
811
811
  "59144": string;
812
+ "81457": string;
812
813
  "11155111": string;
813
814
  };
814
815
  };
@@ -8,6 +8,7 @@ export declare const SNAPSHOT_SUBGRAPH_URL: {
8
8
  "8453": string;
9
9
  "42161": string;
10
10
  "59144": string;
11
+ "81457": string;
11
12
  "11155111": string;
12
13
  };
13
14
  type Delegation = {
@@ -87,6 +87,7 @@ declare const _default: {
87
87
  "8453": string;
88
88
  "42161": string;
89
89
  "59144": string;
90
+ "81457": string;
90
91
  "11155111": string;
91
92
  };
92
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.25",
3
+ "version": "0.12.26",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -8,5 +8,6 @@
8
8
  "8453": "https://subgrapher.snapshot.org/delegation/8453",
9
9
  "42161": "https://subgrapher.snapshot.org/delegation/42161",
10
10
  "59144": "https://subgrapher.snapshot.org/delegation/59144",
11
+ "81457": "https://subgrapher.snapshot.org/delegation/81457",
11
12
  "11155111": "https://subgrapher.snapshot.org/delegation/11155111"
12
13
  }
package/src/utils.ts CHANGED
@@ -255,7 +255,9 @@ ajv.addFormat('customUrl', {
255
255
  ajv.addFormat('domain', {
256
256
  validate: (value: string) => {
257
257
  if (!value) return false;
258
- return !!value.match(/^(https:\/\/)?([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/);
258
+ return !!value.match(
259
+ /^(https:\/\/)?([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}(\/)?$/
260
+ );
259
261
  }
260
262
  });
261
263