@uppy/store-default
Advanced tools
Comparing version 3.0.5 to 3.1.0
# @uppy/store-default | ||
## 3.1.0 | ||
Released: 2023-11-24 | ||
Included in: Uppy v3.20.0 | ||
- @uppy/store-default: refactor to typescript (Antoine du Hamel / #4785) | ||
## 3.0.2 | ||
@@ -4,0 +11,0 @@ |
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
var id = 0; | ||
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore We don't want TS to generate types for the package.json | ||
const packageJson = { | ||
"version": "3.0.5" | ||
"version": "3.1.0" | ||
}; | ||
var _callbacks = /*#__PURE__*/_classPrivateFieldLooseKey("callbacks"); | ||
var _publish = /*#__PURE__*/_classPrivateFieldLooseKey("publish"); | ||
/** | ||
* Default store that keeps state in a simple object. | ||
*/ | ||
var _callbacks = /*#__PURE__*/_classPrivateFieldLooseKey("callbacks"); | ||
var _publish = /*#__PURE__*/_classPrivateFieldLooseKey("publish"); | ||
class DefaultStore { | ||
@@ -17,2 +19,3 @@ constructor() { | ||
}); | ||
this.state = {}; | ||
Object.defineProperty(this, _callbacks, { | ||
@@ -22,3 +25,2 @@ writable: true, | ||
}); | ||
this.state = {}; | ||
} | ||
@@ -25,0 +27,0 @@ getState() { |
{ | ||
"name": "@uppy/store-default", | ||
"description": "The default simple object-based store for Uppy.", | ||
"version": "3.0.5", | ||
"version": "3.1.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12973
12
169