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

@atlaskit/layer

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/layer - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

4

CHANGELOG.md
# @atlaskit/layer
## 5.0.1
- [patch] Schedule extractStyles function [b1e8a47](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1e8a47)
- [none] Updated dependencies [b1e8a47](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1e8a47)
## 5.0.0

@@ -4,0 +8,0 @@

@@ -49,2 +49,6 @@ 'use strict';

var _rafSchd = require('raf-schd');
var _rafSchd2 = _interopRequireDefault(_rafSchd);
var _indexMin = require('../../popper/index-min');

@@ -139,3 +143,4 @@

};
_this.extractStyles = _this.extractStyles.bind(_this);
_this.extractStyles = (0, _rafSchd2.default)(_this.extractStyles.bind(_this));
return _this;

@@ -185,2 +190,3 @@ }

value: function componentWillUnmount() {
this.extractStyles.cancel();
if (this.popper) {

@@ -187,0 +193,0 @@ this.popper.destroy();

5

dist/esm/components/Layer.js

@@ -14,2 +14,3 @@ import _extends from 'babel-runtime/helpers/extends';

import styled from 'styled-components';
import rafSchedule from 'raf-schd';

@@ -92,3 +93,4 @@ import Popper from '../../popper/index-min';

};
_this.extractStyles = _this.extractStyles.bind(_this);
_this.extractStyles = rafSchedule(_this.extractStyles.bind(_this));
return _this;

@@ -138,2 +140,3 @@ }

value: function componentWillUnmount() {
this.extractStyles.cancel();
if (this.popper) {

@@ -140,0 +143,0 @@ this.popper.destroy();

{
"name": "@atlaskit/layer",
"version": "4.2.0"
"version": "5.0.0"
}
{
"name": "@atlaskit/layer",
"version": "5.0.0",
"version": "5.0.1",
"description": "A React layer component responsible for the position of an element on a page",

@@ -23,2 +23,3 @@ "license": "Apache-2.0",

"dependencies": {
"raf-schd": "^2.1.0",
"react-scrolllock": "^3.0.1"

@@ -32,3 +33,4 @@ },

"@atlaskit/docs": "^5.0.0",
"enzyme": "https://registry.npmjs.org/@pgleeson/enzyme/-/enzyme-3.3.7.tgz"
"enzyme": "https://registry.npmjs.org/@pgleeson/enzyme/-/enzyme-3.3.7.tgz",
"raf-stub": "^2.0.1"
},

@@ -43,2 +45,2 @@ "atlaskit": {

]
}
}

Sorry, the diff of this file is not supported yet

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