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

react-native-storage

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-storage - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "react-native-storage",
"version": "0.1.0",
"version": "0.1.1",
"description": "A local storage wrapper for both react-native(AsyncStorage) and browser(localStorage). Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.",

@@ -5,0 +5,0 @@ "main": "storage.js",

@@ -61,3 +61,3 @@ # react-native-storage [![Build Status](https://travis-ci.org/sunnylqm/react-native-storage.svg)](https://travis-ci.org/sunnylqm/react-native-storage) [![npm version](https://badge.fury.io/js/react-native-storage.svg)](http://badge.fury.io/js/react-native-storage)

// 数据过期时间,默认一整天(1000 * 3600 * 24秒)
// 数据过期时间,默认一整天(1000 * 3600 * 24秒),设为null则永不过期
defaultExpires: 1000 * 3600 * 24,

@@ -268,6 +268,9 @@

#### 0.1.1
1. `defaultExpires`现在可以设为`null`了,也就是默认永不过期。
#### 0.1.0
1. 添加getIdsForKey、getAllDataForKey、clearMapForKey方法
2、修复了一些过期的逻辑
3、重构了单元测试代码
2. 修复了一些过期的逻辑
3. 重构了单元测试代码

@@ -274,0 +277,0 @@ #### 0.0.16

@@ -64,3 +64,4 @@ # react-native-storage [![Build Status](https://travis-ci.org/sunnylqm/react-native-storage.svg)](https://travis-ci.org/sunnylqm/react-native-storage) [![npm version](https://badge.fury.io/js/react-native-storage.svg)](http://badge.fury.io/js/react-native-storage)

// expire time, default 1 day(1000 * 3600 * 24 secs)
// expire time, default 1 day(1000 * 3600 * 24 secs).
// can be null, which means never expire.
defaultExpires: 1000 * 3600 * 24,

@@ -103,3 +104,3 @@

// if not specified, the defaultExpires will be applied instead.
// if set to null, then it will never expires.
// if set to null, then it will never expire.
expires: 1000 * 3600

@@ -281,6 +282,9 @@ });

#### 0.1.1
1. `defaultExpires` can be `null` now, which means never expire.
#### 0.1.0
1. add getIdsForKey, getAllDataForKey, clearMapForKey methods
2、fix some expires logic
3、refactor unit tests
2. fix some expires logic
3. refactor unit tests

@@ -287,0 +291,0 @@ #### 0.0.16

@@ -13,3 +13,4 @@ /*

me.sync = options.sync || {}; // remote sync method
me.defaultExpires = options.defaultExpires || 1000 * 3600 * 24;
me.defaultExpires = options.defaultExpires !== undefined ?
options.defaultExpires : 1000 * 3600 * 24;
me.enableCache = options.enableCache || true;

@@ -16,0 +17,0 @@ me._s = options.storageBackend || null;

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