@solana-mobile/dapp-store-publishing-tools 0.9.1 → 0.9.3

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.
@@ -27,18 +27,10 @@ function _object_spread(target) {
27
27
  return target;
28
28
  }
29
29
  import Ajv from "ajv";
30
- // eslint-disable-next-line require-extensions/require-extensions
31
- import publisherSchema from "../schemas/publisherJsonMetadata.json" assert {
32
- type: "json"
33
- };
34
- // eslint-disable-next-line require-extensions/require-extensions
35
- import appSchema from "../schemas/appJsonMetadata.json" assert {
36
- type: "json"
37
- };
38
- // eslint-disable-next-line require-extensions/require-extensions
39
- import releaseSchema from "../schemas/releaseJsonMetadata.json" assert {
40
- type: "json"
41
- };
30
+ import { readFile } from "fs/promises";
31
+ var publisherSchema = JSON.parse((await readFile(new URL("../schemas/publisherJsonMetadata.json", import.meta.url))).toString());
32
+ var appSchema = JSON.parse((await readFile(new URL("../schemas/appJsonMetadata.json", import.meta.url))).toString());
33
+ var releaseSchema = JSON.parse((await readFile(new URL("../schemas/releaseJsonMetadata.json", import.meta.url))).toString());
42
34
  import { isMetaplexFile } from "@metaplex-foundation/js";
43
35
  export var metaplexFileReplacer = function(k, v) {
44
36
  if (isMetaplexFile(v)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-mobile/dapp-store-publishing-tools",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -6,12 +6,10 @@ import type {
6
6
  PublisherMetadata,
7
7
  } from "../types.js";
8
8
 
9
- // eslint-disable-next-line require-extensions/require-extensions
10
- import publisherSchema from "../schemas/publisherJsonMetadata.json" assert { type: "json" };
11
- // eslint-disable-next-line require-extensions/require-extensions
12
- import appSchema from "../schemas/appJsonMetadata.json" assert { type: "json" };
13
- // eslint-disable-next-line require-extensions/require-extensions
14
- import releaseSchema from "../schemas/releaseJsonMetadata.json" assert { type: "json" };
9
+ import { readFile } from 'fs/promises';
10
+ const publisherSchema = JSON.parse((await readFile(new URL("../schemas/publisherJsonMetadata.json", import.meta.url))).toString());
11
+ const appSchema = JSON.parse((await readFile(new URL("../schemas/appJsonMetadata.json", import.meta.url))).toString());
12
+ const releaseSchema = JSON.parse((await readFile(new URL("../schemas/releaseJsonMetadata.json", import.meta.url))).toString());
15
13
  import { isMetaplexFile } from "@metaplex-foundation/js";
16
14
 
17
15
  export const metaplexFileReplacer = (k: any, v: any) => {