diff --git a/agent/mitm/lib/Dns.ts b/agent/mitm/lib/Dns.ts index 3663b0c3b..b491636be 100644 --- a/agent/mitm/lib/Dns.ts +++ b/agent/mitm/lib/Dns.ts @@ -1,4 +1,4 @@ -import moment = require('moment'); +import * as moment from 'moment'; import * as net from 'net'; import { promises as dns } from 'dns'; import { createPromise } from '@ulixee/commons/lib/utils'; diff --git a/real-user-agents/data-generators/UserAgentGenerator.ts b/real-user-agents/data-generators/UserAgentGenerator.ts index d3276ebf5..e9c364835 100644 --- a/real-user-agents/data-generators/UserAgentGenerator.ts +++ b/real-user-agents/data-generators/UserAgentGenerator.ts @@ -1,5 +1,5 @@ import * as Fs from 'fs'; -import compareVersions = require('compare-versions'); +import { compareVersions } from 'compare-versions'; import IUserAgent from '../interfaces/IUserAgent'; import { createBrowserId } from '../lib/BrowserUtils'; import Browsers from '../lib/Browsers'; diff --git a/real-user-agents/package.json b/real-user-agents/package.json index a7cd8b988..43f252cee 100644 --- a/real-user-agents/package.json +++ b/real-user-agents/package.json @@ -9,7 +9,7 @@ "dependencies": { "@ulixee/commons": "2.0.0-alpha.26", "@ulixee/unblocked-specification": "2.0.0-alpha.26", - "compare-versions": "^3.6.0", + "compare-versions": "^6.1.0", "ua-parser-js": "^1.0.37" }, "devDependencies": { diff --git a/real-user-agents/scripts/importOsVersions.ts b/real-user-agents/scripts/importOsVersions.ts index edb126e0f..e8c87f7da 100644 --- a/real-user-agents/scripts/importOsVersions.ts +++ b/real-user-agents/scripts/importOsVersions.ts @@ -2,7 +2,7 @@ import '@ulixee/commons/lib/SourceMapSupport'; import * as Fs from 'fs'; import { Agent } from '@ulixee/unblocked-agent'; import { readFileAsJson } from '@ulixee/commons/lib/fileUtils'; -import moment = require('moment'); +import * as moment from 'moment'; import { getDataFilePath } from '../lib/paths'; export default async function importOsVersions(): Promise { diff --git a/real-user-agents/scripts/updateStatcounterData.ts b/real-user-agents/scripts/updateStatcounterData.ts index d4a923334..91cc06671 100644 --- a/real-user-agents/scripts/updateStatcounterData.ts +++ b/real-user-agents/scripts/updateStatcounterData.ts @@ -2,7 +2,7 @@ import '@ulixee/commons/lib/SourceMapSupport'; import * as Fs from 'fs'; import axios from 'axios'; import csvParser = require('csv-parser'); -import moment = require('moment'); +import * as moment from 'moment'; import { readFileAsJson } from '@ulixee/commons/lib/fileUtils'; import { getDataFilePath } from '../lib/paths'; import { IStatcounterMarketshare } from '../data'; diff --git a/yarn.lock b/yarn.lock index ad1d009e8..253365ecb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2745,11 +2745,6 @@ big.js@^5.2.2: resolved "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz" integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== -bignumber.js@^9.0.2: - version "9.1.2" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c" - integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug== - binary@^0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz" @@ -3166,7 +3161,7 @@ commander@2.11.x: resolved "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz" integrity sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ== -commander@^9.0.0, commander@^9.2.0, commander@^9.3.0: +commander@^9.0.0, commander@^9.2.0: version "9.5.0" resolved "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz" integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ== @@ -3179,11 +3174,6 @@ compare-func@^2.0.0: array-ify "^1.0.0" dot-prop "^5.1.0" -compare-versions@^3.6.0: - version "3.6.0" - resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz" - integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA== - compare-versions@^6.1.0: version "6.1.0" resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.0.tgz" @@ -9377,8 +9367,3 @@ yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -zod@^3.20.2: - version "3.22.4" - resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" - integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==