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

@appsignal/preact

Package Overview
Dependencies
Maintainers
9
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/preact - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

6

CHANGELOG.md
# AppSignal for preact changelog
## 1.0.19
### Changed
- patch - Update @appsignal/core dependency to 1.1.18.
## 1.0.18

@@ -4,0 +10,0 @@

18

dist/cjs/__tests__/ErrorBoundary.test.js

@@ -10,7 +10,7 @@ "use strict";

throw new Error("From component");
return preact_1.h("div", null);
return (0, preact_1.h)("div", null);
};
var BrokenEvent = function () {
throw new Event("My event");
return preact_1.h("div", null);
return (0, preact_1.h)("div", null);
};

@@ -33,7 +33,7 @@ var mock;

afterEach(function () {
preact_2.cleanup();
(0, preact_2.cleanup)();
});
it("catches an error from its children", function () {
preact_2.render(preact_1.h(ErrorBoundary_1.ErrorBoundary, { instance: instance },
preact_1.h(Broken, null)));
(0, preact_2.render)((0, preact_1.h)(ErrorBoundary_1.ErrorBoundary, { instance: instance },
(0, preact_1.h)(Broken, null)));
expect(mock.setAction).not.toBeCalled();

@@ -45,4 +45,4 @@ expect(mock.setTags).toBeCalledWith({ framework: "Preact" });

it("modifies the action if provided as a prop", function () {
preact_2.render(preact_1.h(ErrorBoundary_1.ErrorBoundary, { instance: instance, action: "testaction" },
preact_1.h(Broken, null)));
(0, preact_2.render)((0, preact_1.h)(ErrorBoundary_1.ErrorBoundary, { instance: instance, action: "testaction" },
(0, preact_1.h)(Broken, null)));
expect(mock.setAction).toBeCalledWith("testaction");

@@ -54,4 +54,4 @@ expect(mock.setTags).toBeCalledWith({ framework: "Preact" });

it("renders a fallback if available", function () {
var queryByText = preact_2.render(preact_1.h(ErrorBoundary_1.ErrorBoundary, { instance: instance, fallback: function () { return preact_1.h("div", null, "Fallback"); } },
preact_1.h(Broken, null))).queryByText;
var queryByText = (0, preact_2.render)((0, preact_1.h)(ErrorBoundary_1.ErrorBoundary, { instance: instance, fallback: function () { return (0, preact_1.h)("div", null, "Fallback"); } },
(0, preact_1.h)(Broken, null))).queryByText;
expect(queryByText("Fallback")).toBeDefined();

@@ -58,0 +58,0 @@ });

@@ -10,2 +10,4 @@ "use strict";

return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -12,0 +14,0 @@ function __() { this.constructor = d; }

@@ -9,2 +9,4 @@ var __extends = (this && this.__extends) || (function () {

return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -11,0 +13,0 @@ function __() { this.constructor = d; }

{
"name": "@appsignal/preact",
"version": "1.0.18",
"version": "1.0.19",
"main": "dist/cjs/index.js",

@@ -26,3 +26,3 @@ "module": "dist/esm/index.js",

"@appsignal/types": "=3.0.0",
"@appsignal/core": "=1.1.17"
"@appsignal/core": "=1.1.18"
},

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

@@ -9,2 +9,4 @@ # `@appsignal/preact`

See also the [mono repo README](../../README.md) for more information.
## Installation

@@ -33,3 +35,3 @@

const appsignal = new Appsignal({
const appsignal = new Appsignal({
key: "YOUR FRONTEND API KEY"

@@ -45,4 +47,4 @@ })

return (
<ErrorBoundary
instance={appsignal}
<ErrorBoundary
instance={appsignal}
tags={{ tag: "value" }} {/* Optional */}

@@ -62,11 +64,4 @@ fallback={(error) => <FallbackComponent />} {/* Optional */}

This repository is a Lerna-managed monorepo, containing packages (located in the `/packages` directory) that map to separate `npm` modules.
Make sure mono is installed and bootstrapped, see the [project README's development section](../../README.md#dev-install) for more information.
To install the dependencies:
```bash
yarn install
lerna bootstrap
```
You can then run the following to start the compiler in _watch_ mode. This automatically compiles both the ES Module and CommonJS variants:

@@ -73,0 +68,0 @@

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

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