Bump dev (#21)

* Bump dev

* 0.2

* Update docs
This commit is contained in:
Jaco Greeff
2020-11-11 13:21:11 +01:00
committed by GitHub
parent 3732d16d46
commit 83e7607b1b
13 changed files with 55 additions and 51 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
# @polkadot/phishing
```js
import retrieveCheckDeny from '@polkadot/phishing';
import { checkIfDenied } from '@polkadot/phishing';
const isOnDeny = await retrieveCheckDeny(window.location.host);
const isOnDeny = await checkIfDenied(window.location.host);
console.log(`isOnDeny=${isOnDeny}`);
```
+2 -3
View File
@@ -1,9 +1,8 @@
{
"name": "@polkadot/phishing",
"version": "0.1.17",
"version": "0.2.0",
"description": "Simple phishing scripts from a central source",
"main": "index.js",
"module": "esm/index.js",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
@@ -14,7 +13,7 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/phishing#readme",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/x-fetch": "^4.0.2-11"
"@polkadot/x-fetch": "^4.0.1"
},
"devDependencies": {
"@types/js-yaml": "^3.12.5",
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2020 @polkadot/phishing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import checkIfDenied from '.';
import { checkIfDenied } from '.';
describe('checkIfDenied', (): void => {
it('returns false when host in list', async (): Promise<void> => {
+1 -1
View File
@@ -48,7 +48,7 @@ export function checkHost (items: string[], host: string): boolean {
* Determines if a host is in our deny list. Returns true if host is a problematic one. Returns
* true if the host provided is in our list of less-than-honest sites.
*/
export default async function checkIfDenied (host: string): Promise<boolean> {
export async function checkIfDenied (host: string): Promise<boolean> {
try {
const { deny } = await retrieveHostList();
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/unused",
"version": "0.1.17",
"version": "0.2.0",
"description": "Dummy",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",