New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@trackunit/react-core-hooks

Package Overview
Dependencies
Maintainers
4
Versions
419
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trackunit/react-core-hooks - npm Package Compare versions

Comparing version 1.0.5 to 1.0.7

14

index.cjs.js

@@ -61,4 +61,4 @@ 'use strict';

return (eventName, details, nameSupplement) => {
const event = events === null || events === void 0 ? void 0 : events[eventName];
const eventDescription = event === null || event === void 0 ? void 0 : event.description;
const event = events?.[eventName];
const eventDescription = event?.description;
// Include description in the details object.

@@ -461,3 +461,3 @@ const detailsWithDescription = {

if (options.assetId) {
const doHaveAccess = await (context === null || context === void 0 ? void 0 : context.hasAccessTo(options));
const doHaveAccess = await context?.hasAccessTo(options);
setHasAccess(() => doHaveAccess);

@@ -898,3 +898,3 @@ }

const parsedState = schema.parse(state);
onValidationSuccessful === null || onValidationSuccessful === void 0 ? void 0 : onValidationSuccessful(parsedState);
onValidationSuccessful?.(parsedState);
return parsedState;

@@ -905,3 +905,3 @@ }

console.error("Failed to parse and validate the state from local storage.", error);
onValidationFailed === null || onValidationFailed === void 0 ? void 0 : onValidationFailed(error);
onValidationFailed?.(error);
return defaultState;

@@ -981,7 +981,7 @@ }

localStorage.removeItem(key);
onValidationFailed === null || onValidationFailed === void 0 ? void 0 : onValidationFailed(error);
onValidationFailed?.(error);
},
onValidationSuccessful: data => {
setLocalStorage(key, data);
onValidationSuccessful === null || onValidationSuccessful === void 0 ? void 0 : onValidationSuccessful(data);
onValidationSuccessful?.(data);
},

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

@@ -41,4 +41,4 @@ import * as React from 'react';

return (eventName, details, nameSupplement) => {
const event = events === null || events === void 0 ? void 0 : events[eventName];
const eventDescription = event === null || event === void 0 ? void 0 : event.description;
const event = events?.[eventName];
const eventDescription = event?.description;
// Include description in the details object.

@@ -441,3 +441,3 @@ const detailsWithDescription = {

if (options.assetId) {
const doHaveAccess = await (context === null || context === void 0 ? void 0 : context.hasAccessTo(options));
const doHaveAccess = await context?.hasAccessTo(options);
setHasAccess(() => doHaveAccess);

@@ -878,3 +878,3 @@ }

const parsedState = schema.parse(state);
onValidationSuccessful === null || onValidationSuccessful === void 0 ? void 0 : onValidationSuccessful(parsedState);
onValidationSuccessful?.(parsedState);
return parsedState;

@@ -885,3 +885,3 @@ }

console.error("Failed to parse and validate the state from local storage.", error);
onValidationFailed === null || onValidationFailed === void 0 ? void 0 : onValidationFailed(error);
onValidationFailed?.(error);
return defaultState;

@@ -961,7 +961,7 @@ }

localStorage.removeItem(key);
onValidationFailed === null || onValidationFailed === void 0 ? void 0 : onValidationFailed(error);
onValidationFailed?.(error);
},
onValidationSuccessful: data => {
setLocalStorage(key, data);
onValidationSuccessful === null || onValidationSuccessful === void 0 ? void 0 : onValidationSuccessful(data);
onValidationSuccessful?.(data);
},

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

{
"name": "@trackunit/react-core-hooks",
"version": "1.0.5",
"version": "1.0.7",
"repository": "https://github.com/Trackunit/manager",

@@ -13,5 +13,5 @@ "license": "SEE LICENSE IN LICENSE.txt",

"zod": "3.22.4",
"@trackunit/react-core-contexts-api": "^1.0.5",
"@trackunit/iris-app-runtime-core": "^1.0.5",
"@trackunit/shared-utils": "^1.0.3"
"@trackunit/react-core-contexts-api": "^1.0.7",
"@trackunit/iris-app-runtime-core": "^1.0.7",
"@trackunit/shared-utils": "^1.1.1"
},

@@ -18,0 +18,0 @@ "module": "./index.esm.js",

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