Socket
Socket
Sign inDemoInstall

@paperbits/common

Package Overview
Dependencies
Maintainers
2
Versions
691
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paperbits/common - npm Package Compare versions

Comparing version 0.1.571 to 0.1.572

4

html.ts

@@ -131,3 +131,5 @@ import * as Arrays from "./arrays";

Integrity = "integrity",
ContentEditable = "contentEditable"
ContentEditable = "contentEditable",
Language = "lang",
Direction = "dir"
}

@@ -134,0 +136,0 @@

{
"name": "@paperbits/common",
"version": "0.1.571",
"version": "0.1.572",
"description": "Paperbits common components.",

@@ -5,0 +5,0 @@ "author": "Paperbits",

@@ -92,8 +92,11 @@ import { MimeTypes } from "@paperbits/common";

if (page.locale) {
document.documentElement.setAttribute("lang", page.locale.code.split("-")[0]);
document.documentElement.setAttribute(Attributes.Language, page.locale.code.split("-")[0]);
if (page.locale.direction) {
document.documentElement.setAttribute("dir", page.locale.direction);
document.documentElement.setAttribute(Attributes.Direction, page.locale.direction);
}
}
else {
document.documentElement.setAttribute(Attributes.Language, "en"); // TODO: quick hack
}

@@ -100,0 +103,0 @@ page.styleReferences.forEach(reference => {

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