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

react-localstorage-ts

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-localstorage-ts - npm Package Compare versions

Comparing version 1.2.0-beta.1 to 1.2.0-beta.2

JSONFromString.d.ts

3

LocalValue.d.ts

@@ -34,3 +34,6 @@ import * as O from "fp-ts/Option";

export declare const alt: <V>(la: Lazy<O.Option<E.Either<t.Errors, V>>>) => (lv: O.Option<E.Either<t.Errors, V>>) => O.Option<E.Either<t.Errors, V>>;
export declare const isError: (lv: LocalValue<any>) => boolean;
export declare const isMissing: (lv: LocalValue<any>) => boolean;
export declare const isValid: (lv: LocalValue<any>) => boolean;
export declare const localValue: MaybeError<URI>;
export {};

@@ -22,3 +22,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.localValue = exports.alt = exports.toEither = exports.toOption = exports.fromEither = exports.fromOption = exports.map = exports.chain = exports.of = exports.getOrElse = exports.fold = exports.URI = void 0;
exports.localValue = exports.isValid = exports.isMissing = exports.isError = exports.alt = exports.toEither = exports.toOption = exports.fromEither = exports.fromOption = exports.map = exports.chain = exports.of = exports.getOrElse = exports.fold = exports.URI = void 0;
var O = __importStar(require("fp-ts/Option"));

@@ -127,2 +127,14 @@ var E = __importStar(require("fp-ts/Either"));

exports.alt = alt;
var isError = function (lv) {
return exports.fold(function () { return false; }, function () { return true; }, function () { return false; })(lv);
};
exports.isError = isError;
var isMissing = function (lv) {
return exports.fold(function () { return true; }, function () { return false; }, function () { return false; })(lv);
};
exports.isMissing = isMissing;
var isValid = function (lv) {
return exports.fold(function () { return false; }, function () { return false; }, function () { return true; })(lv);
};
exports.isValid = isValid;
exports.localValue = {

@@ -129,0 +141,0 @@ URI: exports.URI,

{
"name": "react-localstorage-ts",
"version": "1.2.0-beta.1",
"version": "1.2.0-beta.2",
"description": "A small library to wrap browser's localstorage in a functional fashion.",

@@ -24,3 +24,5 @@ "main": "index.js",

"fp-ts": "^2.9.5",
"io-ts": "^2.2.15"
"io-ts": "^2.2.15",
"monocle-ts": "^2.3.5",
"newtype-ts": "^0.3.4"
},

@@ -34,2 +36,4 @@ "devDependencies": {

"@semantic-release/release-notes-generator": "^9.0.1",
"@testing-library/react": "^11.2.5",
"@testing-library/react-hooks": "^5.0.3",
"@types/jest": "^26.0.20",

@@ -41,8 +45,13 @@ "@types/react": "^17.0.2",

"io-ts": "^2.2.15",
"io-ts-types": "^0.5.15",
"is-ci": "^3.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"monocle-ts": "^2.3.5",
"newtype-ts": "^0.3.4",
"pinst": "^2.1.6",
"prettier": "^2.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-renderer": "^17.0.1",
"semantic-release": "^17.3.9",

@@ -49,0 +58,0 @@ "ts-jest": "^26.5.1",

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

![release](https://github.com/ModataSRL/react-localstorage-ts/actions/workflows/release.yml/badge.svg)
#react-localstorage-ts

@@ -2,0 +4,0 @@

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