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

@funboxteam/diamonds

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@funboxteam/diamonds - npm Package Compare versions

Comparing version 6.6.0 to 7.0.0

7

CHANGELOG.md
# Changelog
## 7.0.0 (16.02.2021)
Changed behavior of [enableBodyScroll](./lib/body-scroll.ts) & [disableBodyScroll](./lib/body-scroll.ts).
Now they set and clear `width: 100%`, because otherwise page width may change because of `position: fixed`.
## 6.6.0 (05.02.2021)

@@ -4,0 +11,0 @@

2

dist/cjs/body-scroll.js

@@ -8,2 +8,3 @@ "use strict";

document.body.style.overflowY = '';
document.body.style.width = '';
if (document.body.style.marginTop) {

@@ -28,2 +29,3 @@ var scrollTop = -parseInt(document.body.style.marginTop, 10);

document.body.style.overflowY = 'scroll';
document.body.style.width = '100%';
}

@@ -30,0 +32,0 @@ }

@@ -5,2 +5,3 @@ export function enableBodyScroll() {

document.body.style.overflowY = '';
document.body.style.width = '';
if (document.body.style.marginTop) {

@@ -24,2 +25,3 @@ var scrollTop = -parseInt(document.body.style.marginTop, 10);

document.body.style.overflowY = 'scroll';
document.body.style.width = '100%';
}

@@ -26,0 +28,0 @@ }

# Migrations
## 6.6.0 → 7.0.0
If your project used [enableBodyScroll](./lib/body-scroll.ts) or [disableBodyScroll](./lib/body-scroll.ts),
make sure it works correctly now, because they set and clear `width: 100%` to `body`
([#12](https://github.com/funbox/diamonds/pull/12)).
## 5.0.0 → 6.0.0

@@ -4,0 +11,0 @@

2

package.json
{
"name": "@funboxteam/diamonds",
"version": "6.6.0",
"version": "7.0.0",
"description": "A shiny pile of typed JS helpers for everyday use",

@@ -5,0 +5,0 @@ "scripts": {

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