Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@selfagency/mastodont", | ||
"version": "0.1.0", | ||
"name": "mastodont", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -11,4 +11,7 @@ "main": "dist/index.js", | ||
"dev": "tsc && DEBUG=* node --es-module-specifier-resolution node dist", | ||
"format": "prettier -w ./src", | ||
"lint": "eslint . --ext .ts --fix", | ||
"tsc:check": "tsc --noEmit", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepare": "husky install" | ||
}, | ||
@@ -31,2 +34,8 @@ "repository": { | ||
}, | ||
"lint-staged": { | ||
"src/**/*.ts": [ | ||
"prettier --write", | ||
"eslint --fix" | ||
] | ||
}, | ||
"homepage": "https://github.com/selfagency/mastodont#readme", | ||
@@ -47,3 +56,5 @@ "devDependencies": { | ||
"eslint-config-standard": "^17.0.0", | ||
"husky": "^8.0.2", | ||
"is-url-superb": "^6.1.0", | ||
"lint-staged": "^13.0.3", | ||
"node-fetch": "^3.3.0", | ||
@@ -50,0 +61,0 @@ "open": "^8.4.0", |
{ | ||
"name": "mastodont", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -11,4 +11,7 @@ "main": "dist/index.js", | ||
"dev": "tsc && DEBUG=* node --es-module-specifier-resolution node dist", | ||
"format": "prettier -w ./src", | ||
"lint": "eslint . --ext .ts --fix", | ||
"tsc:check": "tsc --noEmit", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepare": "husky install" | ||
}, | ||
@@ -31,2 +34,8 @@ "repository": { | ||
}, | ||
"lint-staged": { | ||
"src/**/*.ts": [ | ||
"prettier --write", | ||
"eslint --fix" | ||
] | ||
}, | ||
"homepage": "https://github.com/selfagency/mastodont#readme", | ||
@@ -47,3 +56,5 @@ "devDependencies": { | ||
"eslint-config-standard": "^17.0.0", | ||
"husky": "^8.0.2", | ||
"is-url-superb": "^6.1.0", | ||
"lint-staged": "^13.0.3", | ||
"node-fetch": "^3.3.0", | ||
@@ -50,0 +61,0 @@ "open": "^8.4.0", |
@@ -26,2 +26,6 @@ # Mastodont | ||
```bash | ||
mastodont | ||
``` | ||
Mastodont operates interactively and requires only a Mastodon instance URL, an access token with the necessary | ||
@@ -28,0 +32,0 @@ permissions, and a text file containing a list of domains to block. A sample blocklist is provided in the root of this |
@@ -65,3 +65,3 @@ import fetch from 'node-fetch' | ||
`&public_comment=${config.publicComment}` | ||
const blocksToAddPromises = blocksToAdd.map(domain => | ||
@@ -68,0 +68,0 @@ fetch(`${baseUrl}&domain=${domain}`, { |
@@ -1,5 +0,1 @@ | ||
interface Object { | ||
hasOwnProperty<T>(this: T, v: any): v is keyof T | ||
} | ||
export interface MastodontArgs { | ||
@@ -6,0 +2,0 @@ accessToken?: string |
@@ -12,5 +12,3 @@ { | ||
"isolatedModules": true, | ||
"lib": [ | ||
"es2020" | ||
], | ||
"lib": ["es2020"], | ||
"module": "es2020", | ||
@@ -28,17 +26,7 @@ "moduleResolution": "node", | ||
"target": "es2020", | ||
"typeRoots": [ | ||
"./node_modules/@types", | ||
"./src/types" | ||
], | ||
"types": [ | ||
"node" | ||
] | ||
"typeRoots": ["./node_modules/@types", "./src/types"], | ||
"types": ["node"] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
], | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": ["node_modules", "dist"], | ||
"include": ["src/**/*.ts"], | ||
"ts-node": { | ||
@@ -45,0 +33,0 @@ "esm": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4899095
36
70
25
5188