Comparing version 48.4.0 to 49.0.0
{ | ||
"version": "48.4.0", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.ts", | ||
"name": "monetizer", | ||
"version": "49.0.0", | ||
"description": "Web Monetization API for JavaScript", | ||
"main": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
"src", | ||
"lib" | ||
], | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"scripts": { | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"test": "tsdx test", | ||
"lint": "tsdx lint", | ||
"prepare": "tsdx build" | ||
"clean": "rimraf lib tsconfig.tsbuildinfo", | ||
"prepare": "tsc -b .", | ||
"test": "jest" | ||
}, | ||
"peerDependencies": {}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "tsdx lint" | ||
} | ||
}, | ||
"name": "monetizer", | ||
"author": "Thai Pangsakulyanont", | ||
"module": "dist/monetizer.esm.js", | ||
"devDependencies": { | ||
"husky": "^4.2.5", | ||
"tsdx": "^0.13.2", | ||
"tslib": "^1.11.2", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": {}, | ||
"description": "A monetization meta tag manager.", | ||
"keywords": [ | ||
"webmonetization" | ||
], | ||
"author": "Thai Pangsakulyanont <org.yi.dttvb@gmail.com> (http://dt.in.th/)", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dtinth/monetizer.git" | ||
"url": "git+https://github.com/bemusic/bemuse.git" | ||
}, | ||
"keywords": [ | ||
"webmonetization" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/dtinth/monetizer/issues" | ||
"url": "https://github.com/bemusic/bemuse/issues" | ||
}, | ||
"homepage": "https://github.com/dtinth/monetizer#readme" | ||
"homepage": "https://github.com/bemusic/bemuse/tree/master/packages/monetizer#readme", | ||
"volta": { | ||
"extends": "../../package.json" | ||
}, | ||
"gitHead": "af7eecf46321b773a6ef8f0a26aea500eb363b30" | ||
} |
@@ -70,5 +70,5 @@ /// <reference types="jest" /> | ||
const meta = document.querySelector( | ||
'meta[name="monetization"]', | ||
'meta[name="monetization"]' | ||
) as HTMLMetaElement | null | ||
return (meta && meta.content) || '' | ||
} |
@@ -45,3 +45,3 @@ export type MonetizationOptions = { | ||
const maxPriority = Math.max( | ||
...active.map(configuration => configuration.priority), | ||
...active.map(configuration => configuration.priority) | ||
) | ||
@@ -87,8 +87,4 @@ const considered = active.filter(item => item.priority === maxPriority) | ||
export function monetize( | ||
options: MonetizationOptions | string, | ||
): StopMonetizingFn { | ||
export function monetize(options: MonetizationOptions | string) { | ||
return defaultMonetizer.monetize(options) | ||
} | ||
type StopMonetizingFn = () => void |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
52664
0
0
1
12
3
70
353
2
0