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

preact

Package Overview
Dependencies
Maintainers
13
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact - npm Package Compare versions

Comparing version 10.15.0 to 10.15.1

2

compat/src/index.d.ts

@@ -20,2 +20,3 @@ import * as _hooks from '../../hooks';

export import Reducer = _hooks.Reducer;
export import Dispatch = _hooks.Dispatch;
export import Ref = _hooks.Ref;

@@ -44,2 +45,3 @@ export import StateUpdater = _hooks.StateUpdater;

// Preact Defaults
export import Context = preact.Context;
export import ContextType = preact.ContextType;

@@ -46,0 +48,0 @@ export import RefObject = preact.RefObject;

2

devtools/dist/devtools.js

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

var n=require("preact");"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.15.0",n.options,{Fragment:n.Fragment,Component:n.Component}),exports.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e};
var n=require("preact");"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.15.1",n.options,{Fragment:n.Fragment,Component:n.Component}),exports.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e};
//# sourceMappingURL=devtools.js.map

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

import{options as n,Fragment as o,Component as e}from"preact";function t(o,e){return n.__a&&n.__a(e),o}"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.15.0",n,{Fragment:o,Component:e});export{t as addHookName};
import{options as n,Fragment as o,Component as e}from"preact";function t(o,e){return n.__a&&n.__a(e),o}"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.15.1",n,{Fragment:o,Component:e});export{t as addHookName};
//# sourceMappingURL=devtools.module.js.map

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n((e||self).preactDevtools={},e.preact)}(this,function(e,n){"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.15.0",n.options,{Fragment:n.Fragment,Component:n.Component}),e.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n((e||self).preactDevtools={},e.preact)}(this,function(e,n){"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.15.1",n.options,{Fragment:n.Fragment,Component:n.Component}),e.addHookName=function(e,o){return n.options.__a&&n.options.__a(o),e}});
//# sourceMappingURL=devtools.umd.js.map

@@ -5,3 +5,3 @@ import { options, Fragment, Component } from 'preact';

if (typeof window != 'undefined' && window.__PREACT_DEVTOOLS__) {
window.__PREACT_DEVTOOLS__.attachPreact('10.15.0', options, {
window.__PREACT_DEVTOOLS__.attachPreact('10.15.1', options, {
Fragment,

@@ -8,0 +8,0 @@ Component

@@ -18,2 +18,3 @@ import { ErrorInfo, PreactContext, Ref as PreactRef } from '../..';

export type Reducer<S, A> = (prevState: S, action: A) => S;
export type Dispatch<A> = (action: A) => void;
/**

@@ -31,3 +32,3 @@ * An alternative to `useState`.

initialState: S
): [S, (action: A) => void];
): [S, Dispatch<A>];

@@ -48,3 +49,3 @@ /**

init: (arg: I) => S
): [S, (action: A) => void];
): [S, Dispatch<A>];

@@ -51,0 +52,0 @@ /** @deprecated Use the `Ref` type instead. */

{
"name": "preact",
"amdName": "preact",
"version": "10.15.0",
"version": "10.15.1",
"private": false,

@@ -6,0 +6,0 @@ "description": "Fast 3kb React-compatible Virtual DOM library.",

@@ -92,3 +92,3 @@ export as namespace preact;

displayName?: string;
defaultProps?: Partial<P>;
defaultProps?: Partial<P> | undefined;
}

@@ -95,0 +95,0 @@ export interface FunctionalComponent<P = {}> extends FunctionComponent<P> {}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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