mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-12 15:51:03 +00:00
Adjust sort rewrite (newline) (#43)
* Adjust sort rewrite (newline) * Updat js-yaml
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
"@polkadot/x-fetch": "^5.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/js-yaml": "^3.12.5",
|
||||
"js-yaml": "^3.14.1"
|
||||
"@types/js-yaml": "^4.0.0",
|
||||
"js-yaml": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import fs from 'fs';
|
||||
import { safeLoad } from 'js-yaml';
|
||||
import { load as yamlParse } from 'js-yaml';
|
||||
|
||||
import { fetch } from '@polkadot/x-fetch';
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('crosscheck', (): void => {
|
||||
|
||||
beforeAll(async (): Promise<void> => {
|
||||
ours = (await retrieveHostList()).deny;
|
||||
scamDb = safeLoad(await (await fetch(CRYPTOSCAM)).text()) as CryptoScamEntry[];
|
||||
scamDb = yamlParse(await (await fetch(CRYPTOSCAM)).text()) as CryptoScamEntry[];
|
||||
});
|
||||
|
||||
it('has all the relevant entries from CryptoScamDb', (): void => {
|
||||
|
||||
Reference in New Issue
Block a user