From 259df9cedda0899536729a856471d9c5f16b7712 Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Sun, 5 Dec 2021 15:58:32 +0200 Subject: [PATCH] fix esm not working in electron --- package.json | 2 +- src/assets/data/index.ts | 2 +- src/assets/make-index-files.mjs | 2 +- yarn.lock | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 293bd676..796933cd 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ }, "main": "background.js", "dependencies": { + "@bensjoberg/fnv1a": "3.0.0", "@fortawesome/fontawesome-free": "5.15.x", - "@sindresorhus/fnv1a": "^3.0.0", "animate.css": "^4.1.1", "apexcharts": "^3.23.1", "dot-prop": "6.x.x", diff --git a/src/assets/data/index.ts b/src/assets/data/index.ts index 22d6a0e7..d45dc61a 100644 --- a/src/assets/data/index.ts +++ b/src/assets/data/index.ts @@ -1,4 +1,4 @@ -import fnv1a from '@sindresorhus/fnv1a' +import fnv1a from '@bensjoberg/fnv1a' import type { BaseType, BlightRecipes, DropEntry, Stat, StatMatcher, TranslationDict } from './interfaces' import { AppConfig } from '@/web/Config' import { nameToDetailsId } from '@/web/price-check/trends/getDetailsId' diff --git a/src/assets/make-index-files.mjs b/src/assets/make-index-files.mjs index 6882b341..784eec01 100644 --- a/src/assets/make-index-files.mjs +++ b/src/assets/make-index-files.mjs @@ -1,4 +1,4 @@ -import fnv1a from '@sindresorhus/fnv1a' +import fnv1a from '@bensjoberg/fnv1a' import fs from 'fs' import path from 'path' diff --git a/yarn.lock b/yarn.lock index 44649206..43b59d6b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -213,6 +213,11 @@ "@babel/helper-validator-identifier" "^7.14.9" to-fast-properties "^2.0.0" +"@bensjoberg/fnv1a@3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@bensjoberg/fnv1a/-/fnv1a-3.0.0.tgz#d5300c58c95b708bf669ae6224509e0f6ec1f9c3" + integrity sha512-uENnsvSKGAKIsDcKBzLszB2JemGDVuZE3v8lF4Bf+vDNnxLjN+OCaVNQcz5CZGw8FsJ8ddp897rFz66QtCKphA== + "@dabh/diagnostics@^2.0.2": version "2.0.2" resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.2.tgz#290d08f7b381b8f94607dc8f471a12c675f9db31" @@ -551,11 +556,6 @@ resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df" integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== -"@sindresorhus/fnv1a@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@sindresorhus/fnv1a/-/fnv1a-3.0.0.tgz#e8ce2e7c7738ec8c354867d38e3bfcde622b87ca" - integrity sha512-M6pmbdZqAryzjZ4ELAzrdCMoMZk5lH/fshKrapfSeXdf2W+GDqZvPmfXaNTZp43//FVbSwkTPwpEMnehSyskkQ== - "@sindresorhus/is@^0.14.0": version "0.14.0" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"