mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-07-14 10:55:11 +00:00
Compare commits
30 Commits
Author | SHA1 | Date | |
---|---|---|---|
a32f42975a | |||
0148979d7d
|
|||
ea357c9080
|
|||
5e998d3658
|
|||
ed883c06eb | |||
1ecaa048eb | |||
39cd15ead3 | |||
ca5ae0aa57 | |||
cffae6cc28 | |||
5e03f38476 | |||
05134f5b12 | |||
8a0dec867e | |||
75636a9195 | |||
bd33dafe8a | |||
39fb14070d | |||
6ae3b09dc9 | |||
8d13d1dba4 | |||
840c8c3106 | |||
ee4f1be353 | |||
7e4c0eae42 | |||
3d08ab4bfa | |||
3441cc2c60 | |||
9b2e09d766 | |||
3ebde59a84 | |||
e18cbabf70 | |||
1c6c7dacc4 | |||
445b3a5ea6 | |||
7148fc7522 | |||
cde8b24230 | |||
1d21ff650e |
3
.github/FUNDING.yml
vendored
Normal file
3
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
|
||||||
|
github: [tcgdex]
|
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -16,14 +16,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# Follow current releases https://nodejs.org/en/about/releases/
|
# Follow current releases https://nodejs.org/en/about/releases/
|
||||||
node-version: [12.x, 14.x, 16.x]
|
node-version: [12.x, 14.x, 16.x, 17.x, 18.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2.5.1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Coverage
|
- name: Upload Coverage
|
||||||
if: matrix.node-version == '16.x'
|
if: matrix.node-version == '16.x'
|
||||||
uses: codecov/codecov-action@v2.1.0
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
# Comma-separated list of files to upload
|
# Comma-separated list of files to upload
|
||||||
files: ./coverage/coverage-final.json
|
files: ./coverage/coverage-final.json
|
||||||
|
4
.github/workflows/code-quality.yml
vendored
4
.github/workflows/code-quality.yml
vendored
@ -12,10 +12,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
uses: actions/setup-node@v2.5.1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '16.x'
|
||||||
|
|
||||||
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -8,12 +8,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
uses: actions/setup-node@v2.5.1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '18.x'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,4 +5,4 @@ coverage
|
|||||||
|
|
||||||
# Dist files
|
# Dist files
|
||||||
dist
|
dist
|
||||||
src/version.json
|
src/version.js
|
||||||
|
10001
package-lock.json
generated
10001
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tcgdex/sdk",
|
"name": "@tcgdex/sdk",
|
||||||
"version": "2.4.6",
|
"version": "2.4.8",
|
||||||
"main": "./dist/cjs/tcgdex.node.js",
|
"main": "./dist/cjs/tcgdex.node.js",
|
||||||
"module": "./dist/modules/tcgdex.node.js",
|
"module": "./dist/modules/tcgdex.node.js",
|
||||||
"types": "./dist/types/tcgdex.d.ts",
|
"types": "./dist/types/tcgdex.d.ts",
|
||||||
@ -22,29 +22,28 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.14.6",
|
"@babel/core": "^7",
|
||||||
"@babel/preset-env": "^7.14.7",
|
"@babel/preset-env": "^7",
|
||||||
"@babel/preset-typescript": "^7.14.5",
|
"@babel/preset-typescript": "^7",
|
||||||
"@dzeio/config": "^1.0.0",
|
"@dzeio/config": "^1",
|
||||||
"@types/node-fetch": "^2.5.10",
|
"@types/node-fetch": "^2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
"@typescript-eslint/eslint-plugin": "^5",
|
||||||
"@typescript-eslint/parser": "^5.7.0",
|
"@typescript-eslint/parser": "^5",
|
||||||
"esbuild": "^0.14.5",
|
"esbuild": "^0.16.3",
|
||||||
"eslint": "^8.4.1",
|
"eslint": "^8",
|
||||||
"jest": "^27.0.5",
|
"jest": "^29",
|
||||||
"ts-node": "^10.0.0",
|
"typescript": "^4"
|
||||||
"typescript": "^4.1.3"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"isomorphic-unfetch": "^3.1.0",
|
"isomorphic-unfetch": "^3",
|
||||||
"unfetch": "^4.2.0"
|
"unfetch": "^4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "node scripts/export-version-number.js",
|
"prebuild": "node scripts/export-version-number.js",
|
||||||
"build": "npm run prebuild && npm run build:cjs && npm run build:browser && npm run build:es2015",
|
"build": "npm run build:cjs && npm run build:browser && npm run build:es2015",
|
||||||
"build:cjs": "tsc --project tsconfig.json",
|
"build:cjs": "tsc --project tsconfig.json",
|
||||||
"build:es2015": "tsc --project tsconfig.es2015.json",
|
"build:es2015": "tsc --project tsconfig.es2015.json",
|
||||||
"build:browser": "esbuild ./src/tcgdex.browser.ts --bundle --minify --sourcemap --target=es2016,chrome90,firefox78,safari14,ios13,edge90 --outfile=dist/tcgdex.browser.js",
|
"build:browser": "esbuild ./src/tcgdex.browser.ts --bundle --minify --sourcemap --target=es2016,chrome90,firefox78,safari14,ios13,edge90 --outfile=dist/tcgdex.browser.js",
|
||||||
@ -55,5 +54,8 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"sideEffects": false
|
"sideEffects": false,
|
||||||
|
"jest": {
|
||||||
|
"testTimeout": 30000
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const { version } = require('../package.json')
|
const { version } = require('../package.json')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
|
|
||||||
fs.writeFileSync('./src/version.json', JSON.stringify({version}))
|
fs.writeFileSync('./src/version.js', `export const version = '${version}'`)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import TCGdex from './tcgdex'
|
import TCGdex from './tcgdex'
|
||||||
import { version } from './version.json'
|
import { version } from './version'
|
||||||
|
|
||||||
export default class Request {
|
export default class Request {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user