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

@rpldy/shared

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpldy/shared - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

lib/batchItem.js.flow

14

lib/batchItem.js

@@ -8,10 +8,4 @@ "use strict";

var _isObjectLike2 = _interopRequireDefault(require("lodash/isObjectLike"));
var _isString2 = _interopRequireDefault(require("lodash/isString"));
var _consts = require("./consts");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -31,2 +25,6 @@

var isLikeFile = function isLikeFile(f) {
return f && _typeof(f) === "object" && f.name;
};
var _default = function _default(f, batchId) {

@@ -45,5 +43,5 @@ iCounter += 1;

if ((0, _isString2["default"])(f)) {
if (typeof f === "string") {
batchItem = getBatchItemWithUrl(batchItem, f);
} else if ((0, _isObjectLike2["default"])(f)) {
} else if (isLikeFile(f)) {
batchItem = getBatchItemWithFile(batchItem, f);

@@ -50,0 +48,0 @@ } else {

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

exports.DEBUG_LOG_KEY = DEBUG_LOG_KEY;
var BATCH_STATES = Object.freeze({
var BATCH_STATES = {
ADDED: "added",

@@ -17,5 +17,5 @@ PROCESSING: "processing",

ABORTED: "aborted"
});
};
exports.BATCH_STATES = BATCH_STATES;
var FILE_STATES = Object.freeze({
var FILE_STATES = {
ADDED: "added",

@@ -27,3 +27,3 @@ UPLOADING: "uploading",

ABORTED: "aborted"
});
};
exports.FILE_STATES = FILE_STATES;

@@ -8,2 +8,14 @@ "use strict";

});
Object.defineProperty(exports, "invariant", {
enumerable: true,
get: function get() {
return _invariant["default"];
}
});
Object.defineProperty(exports, "throttle", {
enumerable: true,
get: function get() {
return _justThrottle["default"];
}
});
Object.defineProperty(exports, "BATCH_STATES", {

@@ -21,2 +33,20 @@ enumerable: true,

});
Object.defineProperty(exports, "triggerCancellable", {
enumerable: true,
get: function get() {
return _triggerCancellable["default"];
}
});
Object.defineProperty(exports, "triggerUpdater", {
enumerable: true,
get: function get() {
return _triggerUpdater["default"];
}
});
Object.defineProperty(exports, "createBatchItem", {
enumerable: true,
get: function get() {
return _batchItem["default"];
}
});
Object.defineProperty(exports, "isFunction", {

@@ -34,22 +64,32 @@ enumerable: true,

});
Object.defineProperty(exports, "triggerCancellable", {
Object.defineProperty(exports, "devFreeze", {
enumerable: true,
get: function get() {
return _triggerCancellable["default"];
return _utils.devFreeze;
}
});
Object.defineProperty(exports, "triggerUpdater", {
Object.defineProperty(exports, "merge", {
enumerable: true,
get: function get() {
return _triggerUpdater["default"];
return _utils.merge;
}
});
Object.defineProperty(exports, "createBatchItem", {
Object.defineProperty(exports, "clone", {
enumerable: true,
get: function get() {
return _batchItem["default"];
return _utils.clone;
}
});
Object.defineProperty(exports, "produce", {
enumerable: true,
get: function get() {
return _utils.produce;
}
});
exports.logger = void 0;
var _invariant = _interopRequireDefault(require("invariant"));
var _justThrottle = _interopRequireDefault(require("just-throttle"));
var _consts = require("./consts");

@@ -61,4 +101,2 @@

var _utils = require("./utils");
var _triggerCancellable = _interopRequireDefault(require("./triggerCancellable"));

@@ -70,6 +108,8 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _utils = require("./utils");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -12,5 +12,9 @@ "use strict";

var isEnvDebug = function isEnvDebug() {
return process.env.NODE_ENV !== "production" && process.env.DEBUG;
};
var isDebugOn = function isDebugOn() {
if (typeof isDebug !== "boolean") {
isDebug = process.env.DEBUG || !!~window.location.search.indexOf("rpldy_debug=true") || window[_consts.DEBUG_LOG_KEY] === true;
isDebug = isEnvDebug() || !!~window.location.search.indexOf("rpldy_debug=true") || window[_consts.DEBUG_LOG_KEY] === true;
}

@@ -17,0 +21,0 @@

{
"version": "0.1.6",
"version": "0.1.7",
"name": "@rpldy/shared",

@@ -19,6 +19,7 @@ "description": "",

"devDependencies": {
"flow-bin": "^0.119.1"
"flow-bin": "^0.121.0"
},
"dependencies": {
"lodash": "^4.17.15"
"invariant": "^2.2.4",
"just-throttle": "^1.1.0"
},

@@ -28,3 +29,3 @@ "publishConfig": {

},
"gitHead": "45d0ec79b4858dea8022c8971f1f16e61a38c027"
"gitHead": "0ac67a2893ef3a684b8cf1834590035065340366"
}
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