New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

monetizer

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monetizer - npm Package Compare versions

Comparing version 48.4.0 to 49.0.0

lib/index.d.ts

59

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc