Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rehype-minify-language

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-minify-language - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

index.d.ts.map

1

index.d.ts
export { default } from "./lib/index.js";
//# sourceMappingURL=index.d.ts.map

3

lib/index.d.ts

@@ -8,2 +8,3 @@ /**

export default function rehypeMinifyLanguage(): (tree: Root) => undefined;
export type Root = import('hast').Root;
import type { Root } from 'hast';
//# sourceMappingURL=index.d.ts.map
/**
* @typedef {import('hast').Root} Root
* @import {Root} from 'hast'
*/

@@ -28,4 +28,4 @@

while (++index < fields.length) {
const prop = fields[index]
const value = node.properties[prop]
const property = fields[index]
const value = node.properties[property]

@@ -35,3 +35,5 @@ if (typeof value === 'string') {

// lowercase which *should* help GZIP.
node.properties[prop] = (bcp47Normalize(value) || value).toLowerCase()
node.properties[property] = (
bcp47Normalize(value) || value
).toLowerCase()
}

@@ -38,0 +40,0 @@ }

{
"name": "rehype-minify-language",
"version": "3.0.0",
"version": "3.0.1",
"description": "rehype plugin to minify language attributes",

@@ -34,2 +34,3 @@ "license": "MIT",

"index.d.ts",
"index.d.ts.map",
"index.js",

@@ -50,3 +51,8 @@ "lib/"

},
"xo": false
"xo": {
"prettier": true,
"rules": {
"capitalized-comments": "off"
}
}
}

@@ -17,16 +17,16 @@ <!--This file is generated-->

* [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`unified().use(rehypeMinifyLanguage)`](#unifieduserehypeminifylanguage)
* [Example](#example)
* [Syntax](#syntax)
* [Syntax tree](#syntax-tree)
* [Types](#types)
* [Compatibility](#compatibility)
* [Security](#security)
* [Contribute](#contribute)
* [License](#license)
* [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`unified().use(rehypeMinifyLanguage)`](#unifieduserehypeminifylanguage)
* [Example](#example)
* [Syntax](#syntax)
* [Syntax tree](#syntax-tree)
* [Types](#types)
* [Compatibility](#compatibility)
* [Security](#security)
* [Contribute](#contribute)
* [License](#license)

@@ -33,0 +33,0 @@ ## What is this?

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