Socket
Socket
Sign inDemoInstall

realar

Package Overview
Dependencies
1
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.2 to 0.6.3

10

build/index.js

@@ -506,2 +506,11 @@ "use strict";

};
const transaction_function = (fn) => function () {
const finish = internal_transaction();
try {
return fn.apply(this, arguments);
}
finally {
finish();
}
};
//

@@ -521,2 +530,3 @@ // Realar exportable api

transaction[key_unsafe] = internal_transaction;
transaction[key_func] = transaction_function;
const untrack = ((fn) => {

@@ -523,0 +533,0 @@ const finish = internal_untrack();

1

build/types.d.ts

@@ -40,2 +40,3 @@ import { FC } from 'react';

unsafe: () => () => void;
func: <T extends (...args: any[]) => any>(fn: T) => T;
};

@@ -42,0 +43,0 @@ declare type Untrack = {

4

package.json
{
"name": "realar",
"version": "0.6.2",
"version": "0.6.3",
"description": "Advanced state manager for React",

@@ -91,3 +91,3 @@ "repository": {

},
"gitHead": "6161f6e622c0fa93e7725ae28d1837c1906f5a1f"
"gitHead": "2463f083d08bf025c90a27516f34d21b0cc18b2e"
}

@@ -834,2 +834,8 @@ import React, { Context, FC } from 'react';

const transaction_function = (fn) => function (this: any) {
const finish = internal_transaction();
try { return fn.apply(this, arguments); }
finally { finish() }
}
//

@@ -845,2 +851,3 @@ // Realar exportable api

transaction[key_unsafe] = internal_transaction;
transaction[key_func] = transaction_function as any;

@@ -847,0 +854,0 @@ const untrack: Untrack = ((fn) => {

@@ -88,2 +88,3 @@ import { FC } from 'react';

unsafe: () => () => void;
func: <T extends (...args: any[]) => any>(fn: T) => T;
}

@@ -90,0 +91,0 @@ type Untrack = {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc