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

@uppy/store-default

Package Overview
Dependencies
Maintainers
8
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/store-default - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

CHANGELOG.md

21

lib/index.js

@@ -9,7 +9,11 @@ "use strict";

var _publish = /*#__PURE__*/_classPrivateFieldLooseKey("publish");
const packageJson = {
"version": "2.1.0"
};
/**
* Default store that keeps state in a simple object.
*/
var _publish = /*#__PURE__*/_classPrivateFieldLooseKey("publish");
class DefaultStore {

@@ -21,3 +25,3 @@ constructor() {

this.state = {};
this.callbacks = [];
this.callbacks = []; // TODO: use a Set instead, make it a private prop
}

@@ -48,4 +52,5 @@

}
} // TODO: export the class instead in the next major.
function _publish2() {

@@ -61,6 +66,8 @@ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {

DefaultStore.VERSION = "2.0.3";
DefaultStore.VERSION = packageJson.version;
module.exports = function defaultStore() {
function defaultStore() {
return new DefaultStore();
};
}
module.exports = defaultStore;
{
"name": "@uppy/store-default",
"description": "The default simple object-based store for Uppy.",
"version": "2.0.3",
"version": "2.1.0",
"license": "MIT",
"main": "lib/index.js",
"types": "types/index.d.ts",
"type": "module",
"keywords": [

@@ -17,2 +18,5 @@ "file uploader",

},
"devDependencies": {
"@jest/globals": "^27.4.2"
},
"repository": {

@@ -19,0 +23,0 @@ "type": "git",

@@ -31,4 +31,2 @@ # @uppy/store-default

We recommend installing from npm and then using a module bundler such as [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
Alternatively, you can also use this package in a pre-built bundle from Transloadit’s CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object. See the [main Uppy documentation](https://uppy.io/docs/#Installation) for instructions.

@@ -35,0 +33,0 @@

@@ -0,1 +1,2 @@

import packageJson from '../package.json'
/**

@@ -5,7 +6,7 @@ * Default store that keeps state in a simple object.

class DefaultStore {
static VERSION = require('../package.json').version
static VERSION = packageJson.version
constructor () {
this.state = {}
this.callbacks = []
this.callbacks = [] // TODO: use a Set instead, make it a private prop
}

@@ -43,4 +44,5 @@

module.exports = function defaultStore () {
// TODO: export the class instead in the next major.
export default function defaultStore () {
return new DefaultStore()
}

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

const DefaultStore = require('./index')
import { describe, expect, it } from '@jest/globals'
import DefaultStore from './index.js'

@@ -3,0 +4,0 @@ describe('DefaultStore', () => {

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