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

boxcrate

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxcrate - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

a/expiration.js

46

boxcrate.js

@@ -83,4 +83,2 @@ function _typeof(obj) {

*
* @since 2.0.0
*
* @property {string}

@@ -94,4 +92,2 @@ *

*
* @since 2.0.0
*
* @property {number}

@@ -117,2 +113,4 @@ *

var _temp;
/**

@@ -123,8 +121,4 @@ * BoxCrate abstracts the use of localStorage providing an easy to work with interface while maintaining the full functionality

* BoxCrate works with data as it is without you having to worry about stringifying it to save it.
*
* @author Robert Corponoi <robertcorponoi@gmail.com>
*
* @version 2.0.0
*/
var BoxCrate =
module.exports = (_temp =
/*#__PURE__*/

@@ -135,4 +129,2 @@ function () {

*
* @since 2.0.0
*
* @property {Options}

@@ -144,4 +136,2 @@ */

*
* @since 2.0.0
*
* @property {number}

@@ -153,4 +143,2 @@ */

*
* @since 2.0.0
*
* @property {number}

@@ -162,4 +150,2 @@ */

*
* @since 2.0.0
*
* @property {number}

@@ -171,4 +157,2 @@ */

*
* @since 0.1.0
*
* @property {Storage}

@@ -180,4 +164,2 @@ */

*
* @since 0.1.0
*
* @property {number}

@@ -212,4 +194,2 @@ */

*
* @since 0.1.0
*
* @param {string} id The unique id of this item used to modify or retrieve it.

@@ -301,4 +281,2 @@ * @param {*} value The data to save.

*
* @since 0.1.0
*
* @param {string} id The id of the item to retrieve from storage.

@@ -327,4 +305,2 @@ *

*
* @since 0.1.0
*
* @param {string} id The id of the item to remove from storage.

@@ -345,4 +321,2 @@ *

*
* @since 0.1.0
*
* @returns {BoxCrate} Returns this for chaining.

@@ -361,4 +335,2 @@ */

*
* @since 2.0.0
*
* @private

@@ -425,4 +397,2 @@ *

*
* @since 2.0.0
*
* @private

@@ -462,4 +432,2 @@ *

*
* @since 2.0.0
*
* @private

@@ -481,4 +449,2 @@ *

*
* @since 0.1.0
*
* @private

@@ -509,4 +475,2 @@ */

*
* @since 0.1.0
*
* @private

@@ -529,4 +493,2 @@ */

return BoxCrate;
}();
export default BoxCrate;
}(), _temp);

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

{
"name": "boxcrate",
"version": "2.0.3",
"version": "2.0.4",
"description": "A smart wrapper for the browser's localStorage that allows you to set and get items as they are with optional expiration times.",

@@ -8,17 +8,24 @@ "main": "boxcrate.js",

"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.3.3",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/preset-typescript": "^7.6.0",
"ava": "^2.4.0",
"browser-env": "^3.2.6",
"chai": "^4.2.0",
"mocha": "^6.2.0",
"rollup": "^1.19.4",
"mocha": "^6.2.2",
"rollup": "^1.26.3",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.1.0",
"sinon": "^7.4.1",
"typescript": "^3.5.3"
"sinon": "^7.5.0",
"typescript": "^3.6.4"
},
"ava": {
"require": [
"./test/_setup-browser-env.js"
]
},
"types": "lib/index.d.ts",

@@ -32,3 +39,4 @@ "scripts": {

"bundle": "rollup -c",
"bundle:watch": "rollup -c --watch"
"bundle:watch": "rollup -c --watch",
"test": "ava"
},

@@ -35,0 +43,0 @@ "repository": {

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

'use strict'
import pkg from './package.json';

@@ -9,2 +11,3 @@ import babel from 'rollup-plugin-babel';

export default {
input: './src/index.ts',

@@ -24,4 +27,5 @@

file: pkg.module,
format: 'es',
format: 'esm',
}]
};

@@ -12,8 +12,4 @@ 'use strict'

* BoxCrate works with data as it is without you having to worry about stringifying it to save it.
*
* @author Robert Corponoi <robertcorponoi@gmail.com>
*
* @version 2.0.0
*/
export default class BoxCrate {
module.exports = class BoxCrate {

@@ -23,4 +19,2 @@ /**

*
* @since 2.0.0
*
* @property {Options}

@@ -33,4 +27,2 @@ */

*
* @since 2.0.0
*
* @property {number}

@@ -43,4 +35,2 @@ */

*
* @since 2.0.0
*
* @property {number}

@@ -53,4 +43,2 @@ */

*
* @since 2.0.0
*
* @property {number}

@@ -63,4 +51,2 @@ */

*
* @since 0.1.0
*
* @property {Storage}

@@ -73,4 +59,2 @@ */

*
* @since 0.1.0
*
* @property {number}

@@ -96,4 +80,2 @@ */

*
* @since 0.1.0
*
* @param {string} id The unique id of this item used to modify or retrieve it.

@@ -169,4 +151,2 @@ * @param {*} value The data to save.

*
* @since 0.1.0
*
* @param {string} id The id of the item to retrieve from storage.

@@ -201,4 +181,2 @@ *

*
* @since 0.1.0
*
* @param {string} id The id of the item to remove from storage.

@@ -221,4 +199,2 @@ *

*
* @since 0.1.0
*
* @returns {BoxCrate} Returns this for chaining.

@@ -239,4 +215,2 @@ */

*
* @since 2.0.0
*
* @private

@@ -282,4 +256,2 @@ *

*
* @since 2.0.0
*
* @private

@@ -321,4 +293,2 @@ *

*
* @since 2.0.0
*
* @private

@@ -341,4 +311,2 @@ *

*
* @since 0.1.0
*
* @private

@@ -373,4 +341,2 @@ */

*
* @since 0.1.0
*
* @private

@@ -377,0 +343,0 @@ */

@@ -5,4 +5,2 @@ 'use strict'

* Defines the structure for an item saved to the storage.
*
* @since 2.0.0
*/

@@ -9,0 +7,0 @@ export default interface Item {

@@ -5,4 +5,2 @@ 'use strict'

* Defines the options available and their defaults for BoxCrate.
*
* @since 2.0.0
*/

@@ -21,4 +19,2 @@ export default class Options {

*
* @since 2.0.0
*
* @property {string}

@@ -33,4 +29,2 @@ *

*
* @since 2.0.0
*
* @property {number}

@@ -37,0 +31,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