Socket
Socket
Sign inDemoInstall

@react-spring/shared

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-spring/shared - npm Package Compare versions

Comparing version 9.2.1 to 9.2.2

7

dist/declarations/src/globals.d.ts

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

import { raf } from 'rafz';
import { raf } from '@react-spring/rafz';
import { OneOrMore, InterpolatorConfig, InterpolatorArgs } from '@react-spring/types';
import { Rafz } from 'packages/rafz';
import { FluidValue } from './fluids';
import { OneOrMore, InterpolatorConfig, InterpolatorArgs } from '@react-spring/types';
import type { OpaqueAnimation } from './FrameLoop';

@@ -29,3 +30,5 @@ export declare let createStringInterpolator: (config: InterpolatorConfig<string>) => (input: number) => string;

willAdvance?: typeof willAdvance;
/** sets the global frameLoop setting for the global raf instance */
frameLoop?: Rafz['frameLoop'];
}
export declare const assign: (globals: AnimatedGlobals) => void;

@@ -18,3 +18,3 @@ import * as Globals from './globals';

export * from './fluids';
export { raf } from 'rafz';
export type { Timeout } from 'rafz';
export { raf } from '@react-spring/rafz';
export type { Timeout } from '@react-spring/rafz';

@@ -5,3 +5,3 @@ 'use strict';

var rafz = require('rafz');
var rafz = require('@react-spring/rafz');
var React = require('react');

@@ -88,2 +88,3 @@

if (globals.willAdvance) willAdvance = globals.willAdvance;
if (globals.frameLoop) rafz.raf.frameLoop = globals.frameLoop;
};

@@ -554,2 +555,5 @@

constructor(get) {
this[$get] = void 0;
this[$observers] = void 0;
if (!get && !(get = this.get)) {

@@ -556,0 +560,0 @@ throw Error('Unknown getter');

@@ -5,3 +5,3 @@ 'use strict';

var rafz = require('rafz');
var rafz = require('@react-spring/rafz');
var React = require('react');

@@ -88,2 +88,3 @@

if (globals.willAdvance) willAdvance = globals.willAdvance;
if (globals.frameLoop) rafz.raf.frameLoop = globals.frameLoop;
};

@@ -554,2 +555,5 @@

constructor(get) {
this[$get] = void 0;
this[$observers] = void 0;
if (!get && !(get = this.get)) {

@@ -556,0 +560,0 @@ throw Error('Unknown getter');

@@ -1,3 +0,3 @@

import { raf } from 'rafz';
export { raf } from 'rafz';
import { raf } from '@react-spring/rafz';
export { raf } from '@react-spring/rafz';
import * as React from 'react';

@@ -63,2 +63,3 @@ import { useEffect, useState, useRef } from 'react';

if (globals.willAdvance) willAdvance = globals.willAdvance;
if (globals.frameLoop) raf.frameLoop = globals.frameLoop;
};

@@ -529,2 +530,5 @@

constructor(get) {
this[$get] = void 0;
this[$observers] = void 0;
if (!get && !(get = this.get)) {

@@ -531,0 +535,0 @@ throw Error('Unknown getter');

{
"name": "@react-spring/shared",
"version": "9.2.1",
"version": "9.2.2",
"description": "Globals and shared modules",

@@ -31,4 +31,4 @@ "main": "dist/react-spring-shared.cjs.js",

"dependencies": {
"@react-spring/types": "~9.2.0",
"rafz": "^0.1.13"
"@react-spring/rafz": "~9.2.0",
"@react-spring/types": "~9.2.0"
},

@@ -35,0 +35,0 @@ "peerDependencies": {

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