Skip to content

Commit

Permalink
[Release] version 0.2.19-beta-0 (Update dev with preview records)
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Oct 23, 2023
1 parent 6f93ea0 commit 0a20a98
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.2.18",
"version": "0.2.19-beta.0",
"workspaces": [
"packages/*"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/chain-list-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.2.18",
"version": "0.2.19-beta.0",
"main": "index.js"
}
2 changes: 1 addition & 1 deletion packages/chain-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.2.18",
"version": "0.2.19-beta.0",
"main": "index.js",
"dependencies": {
"@polkadot/dev": "0.67.167",
Expand Down
2 changes: 1 addition & 1 deletion packages/chain-list/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@subwallet/chain-list', path: 'auto', type: 'auto', version: '0.2.18' };
export const packageInfo = { name: '@subwallet/chain-list', path: 'auto', type: 'auto', version: '0.2.19-beta.0' };
8 changes: 4 additions & 4 deletions scripts/strapi/fetch-chains.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {gql} from "graphql-request";
import * as fs from "fs";
import {DOWNLOAD_DIR, DOWNLOAD_LINK, downloadFile, graphQLClient, removeDir, writeJSONFile} from "./strapi-api.mjs";
import {DOWNLOAD_DIR, DOWNLOAD_LINK, downloadFile, writeJSONFile} from "./strapi-api.mjs";

const BRANCH_NAME = process.env.BRANCH_NAME || 'dev';
const SAVE_PATH = './packages/chain-list/src/data/ChainInfo.json';

const main = async () => {
const results = await fetch('https://content.subwallet.app/api/list/chain');
const apiUrl = BRANCH_NAME === 'master' ? 'https://content.subwallet.app/api/list/chain' : 'https://content.subwallet.app/api/list/chain?preview=true';
const results = await fetch(apiUrl);
const data = await results.json();
const downloadDir = `${DOWNLOAD_DIR}/chains`;
const chains = await Promise.all(data.map(async chain => {
Expand Down

0 comments on commit 0a20a98

Please sign in to comment.