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

@loki/browser

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loki/browser - npm Package Compare versions

Comparing version 0.27.0 to 0.28.0

6

package.json
{
"name": "@loki/browser",
"version": "0.27.0",
"version": "0.28.0",
"description": "Loki browser integration",

@@ -23,3 +23,3 @@ "keywords": [

"dependencies": {
"@loki/integration-core": "^0.27.0"
"@loki/integration-core": "^0.28.0"
},

@@ -29,3 +29,3 @@ "publishConfig": {

},
"gitHead": "f99c5c44c92fa7eb5ea6e849b0e6f08d31dc7ae9"
"gitHead": "6cbab143b2367fbf4dddca561c593257c503ff11"
}

@@ -1,4 +0,4 @@

const awaitLokiReady = window =>
const awaitLokiReady = (window) =>
window.loki && window.loki.awaitReady && window.loki.awaitReady();
module.exports = awaitLokiReady;
/* eslint no-param-reassign: ["error", { "props": false }] */
const disableAnimations = window => {
const disableAnimations = (window) => {
const DISABLE_CSS_ANIMATIONS_STYLE = `

@@ -30,3 +30,3 @@ *, :before, :after {

currentFrame++;
callbacks.splice(0).forEach(c => c(now()));
callbacks.splice(0).forEach((c) => c(now()));

@@ -44,3 +44,3 @@ // Assume no new invocations for 50ms means we've ended

window.loki.registerPendingPromise(
new Promise(resolve => {
new Promise((resolve) => {
resolveRAF = resolve;

@@ -61,3 +61,3 @@ })

// we just force them to a pause.
window.requestAnimationFrame = callback => {
window.requestAnimationFrame = (callback) => {
// Avoid infinite loop by only allowing 1000 frames

@@ -64,0 +64,0 @@ if (currentFrame < maxFrames) {

@@ -1,2 +0,2 @@

const disableInputCaret = window => {
const disableInputCaret = (window) => {
const DISABLE_INPUT_CARET_STYLE = `

@@ -3,0 +3,0 @@ * {

@@ -1,2 +0,2 @@

const disablePointerEvents = window => {
const disablePointerEvents = (window) => {
const DISABLE_POINTER_EVENTS_STYLE = `

@@ -3,0 +3,0 @@ * {

@@ -143,3 +143,3 @@ const getSelectorBoxSize = (window, selector) => {

Array.from(window.document.querySelectorAll(rootSelector)).map(
element => element.parentElement
(element) => element.parentElement
)

@@ -178,3 +178,3 @@ );

const getBoundingClientRect = element => element.getBoundingClientRect();
const getBoundingClientRect = (element) => element.getBoundingClientRect();

@@ -181,0 +181,0 @@ const boxSizeUnion = (domRect, { x, y, width, height }) => {

@@ -9,3 +9,3 @@ /**

const addElementsToWrapper = (rects, customMarkup = w => w) => {
const addElementsToWrapper = (rects, customMarkup = (w) => w) => {
let wrapper = document.querySelector('#root');

@@ -153,3 +153,3 @@

];
addElementsToWrapper(mockElementRects, root => {
addElementsToWrapper(mockElementRects, (root) => {
const wrapper = document.createElement('div');

@@ -156,0 +156,0 @@ wrapper.setAttribute('class', 'wrapper');

/* eslint-disable no-underscore-dangle */
const getStories = window => {
const getStories = (window) => {
const getStorybook =

@@ -13,3 +13,3 @@ (window.__STORYBOOK_CLIENT_API__ && window.__STORYBOOK_CLIENT_API__.raw) ||

return getStorybook()
.map(component => ({
.map((component) => ({
id: component.id,

@@ -16,0 +16,0 @@ kind: component.kind,

@@ -1,2 +0,2 @@

const getStorybookError = window => {
const getStorybookError = (window) => {
const errorElement = window.document.querySelector(

@@ -3,0 +3,0 @@ '.sb-show-errordisplay #error-message'

/* eslint-disable no-param-reassign */
const setLokiIsRunning = window => {
const setLokiIsRunning = (window) => {
if (!window.loki) {

@@ -5,0 +5,0 @@ window.loki = {};

/* eslint-disable no-param-reassign */
const setLokiTestAttribute = window => {
const setLokiTestAttribute = (window) => {
window.document.querySelector(':root').setAttribute('loki-test', true);

@@ -5,0 +5,0 @@ };

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