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

@zag-js/remove-scroll

Package Overview
Dependencies
Maintainers
0
Versions
721
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/remove-scroll - npm Package Compare versions

Comparing version 0.70.0 to 0.71.0

36

dist/index.js

@@ -1,27 +0,6 @@

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
'use strict';
var domQuery = require('@zag-js/dom-query');
// src/index.ts
var src_exports = {};
__export(src_exports, {
preventBodyScroll: () => preventBodyScroll
});
module.exports = __toCommonJS(src_exports);
var import_dom_query = require("@zag-js/dom-query");
var LOCK_CLASSNAME = "data-zag-scroll-lock";

@@ -84,3 +63,3 @@ function assignStyle(el, style) {

};
const cleanups = [setScrollbarWidthProperty(), (0, import_dom_query.isIos)() ? setIOSStyle() : setStyle()];
const cleanups = [setScrollbarWidthProperty(), domQuery.isIos() ? setIOSStyle() : setStyle()];
return () => {

@@ -91,6 +70,3 @@ cleanups.forEach((fn) => fn?.());

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
preventBodyScroll
});
//# sourceMappingURL=index.js.map
exports.preventBodyScroll = preventBodyScroll;

9

package.json
{
"name": "@zag-js/remove-scroll",
"version": "0.70.0",
"version": "0.71.0",
"description": "JavaScript utility to remove scroll on body",

@@ -16,4 +16,3 @@ "keywords": [

"files": [
"dist",
"src"
"dist"
],

@@ -24,3 +23,3 @@ "publishConfig": {

"dependencies": {
"@zag-js/dom-query": "0.70.0"
"@zag-js/dom-query": "0.71.0"
},

@@ -47,3 +46,3 @@ "devDependencies": {

"build": "tsup",
"test": "jest --config ../../../jest.config.js --rootDir tests",
"test": "vitest",
"lint": "eslint src",

@@ -50,0 +49,0 @@ "test-ci": "pnpm test --ci --runInBand -u",

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