@lotus-tree/fg-notation 2.0.1 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotus-tree/fg-notation",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "main": "src/index.js",
5
5
  "type": "module",
6
6
  "dependencies": {
package/src/index.js CHANGED
@@ -5,8 +5,9 @@ import { DataTypes } from 'sequelize'
5
5
  import bent from 'bent'
6
6
  import axios from 'axios'
7
7
  import { GatewayIntentBits, Partials } from 'discord.js'
8
+ import { readFileSync } from 'fs'
8
9
 
9
- import { sizes, aliases, builtin } from './info.json'
10
+ const { sizes, aliases, builtin } = JSON.parse(readFileSync(path.join(__dirname, './info.json')))
10
11
 
11
12
  const getJSON = bent('json')
12
13
  const imgPath = path.join(__dirname, 'img')