🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

style-mod

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-mod - npm Package Compare versions

Comparing version
4.1.2
to
4.1.3
+16
dist/style-mod.d.cts
export class StyleModule {
constructor(spec: {[selector: string]: StyleSpec}, options?: {
finish?(sel: string): string
})
getRules(): string
static mount(
root: Document | ShadowRoot | DocumentOrShadowRoot,
module: StyleModule | ReadonlyArray<StyleModule>,
options?: {nonce?: string}
): void
static newName(): string
}
export type StyleSpec = {
[propOrSelector: string]: string | number | StyleSpec | null
}
+2
-2
{
"name": "style-mod",
"version": "4.1.2",
"version": "4.1.3",
"description": "A minimal CSS module shim",

@@ -18,3 +18,3 @@ "main": "dist/style-mod.cjs",

"test": "npm run build && mocha test/test-*.js",
"build": "mkdir -p dist; buble --no modules src/style-mod.js | sed -e 's/export var StyleModule/var StyleModule = exports.StyleModule/' > dist/style-mod.cjs",
"build": "mkdir -p dist; buble --no modules src/style-mod.js | sed -e 's/export var StyleModule/var StyleModule = exports.StyleModule/' > dist/style-mod.cjs; cp src/style-mod.d.ts dist/style-mod.d.cts",
"prepare": "npm run build && npm run build-readme",

@@ -21,0 +21,0 @@ "build-readme": "builddocs --name style-mod --main src/README.md --format markdown src/*.js > README.md"