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

@filerobot/utils

Package Overview
Dependencies
Maintainers
1
Versions
1368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filerobot/utils - npm Package Compare versions

Comparing version 0.0.0-beta.34 to 0.0.0-beta.35

lib/getCDNLinkValue.js

2

lib/copyText.js

@@ -9,3 +9,3 @@ /**

* @param {Function} i18n -- The translation function for translating the shown confirmation message - eg. plugin.i18n
* @param {Function} logInfo -- The uploader info function for showing confirmation message - eg. plugin.uploader.info
* @param {Function} logInfo -- The filerobot info function for showing confirmation message - eg. plugin.filerobot.info
*/

@@ -12,0 +12,0 @@ export default (function (text, i18n, logInfo) {

import throttle from 'lodash.throttle';
function _emitSocketProgress(uploader, progressData, file) {
function _emitSocketProgress(filerobot, progressData, file) {
var progress = progressData.progress,

@@ -9,5 +9,5 @@ bytesUploaded = progressData.bytesUploaded,

if (progress) {
uploader.uploader.log("Upload progress: " + progress);
uploader.uploader.emit('upload-progress', file, {
uploader: uploader,
filerobot.filerobot.log("Upload progress: " + progress);
filerobot.filerobot.emit('upload-progress', file, {
filerobot: filerobot,
bytesUploaded: bytesUploaded,

@@ -14,0 +14,0 @@ bytesTotal: bytesTotal

@@ -11,3 +11,3 @@ /**

// is slower! simple string concatenation is fast
var id = 'uploader';
var id = 'filerobot';

@@ -14,0 +14,0 @@ if (typeof file.name === 'string') {

@@ -23,2 +23,9 @@ export default (function (file, notFoundStr) {

var fileName = file.name;
var nameSeparatorIndex = fileName === null || fileName === void 0 ? void 0 : fileName.lastIndexOf('.');
if (fileName && nameSeparatorIndex && nameSeparatorIndex !== -1) {
return fileName.slice(nameSeparatorIndex + 1);
}
var fileType = file.type;

@@ -31,10 +38,3 @@ var typeSeparatorIndex = fileType === null || fileType === void 0 ? void 0 : fileType.lastIndexOf('/');

var fileName = file.name;
var nameSeparatorIndex = fileName === null || fileName === void 0 ? void 0 : fileName.lastIndexOf('.');
if (fileName && nameSeparatorIndex && nameSeparatorIndex !== -1) {
return fileName.slice(nameSeparatorIndex + 1);
}
return notFoundStr;
});

@@ -6,3 +6,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

focusable: "false",
className: "uploader-c-icon",
className: "filerobot-c-icon",
viewBox: "0 0 50 50",

@@ -23,3 +23,3 @@ width: "12",

focusable: "false",
className: "uploader-c-icon",
className: "filerobot-c-icon",
viewBox: "0 0 50 50",

@@ -26,0 +26,0 @@ width: "12",

@@ -22,3 +22,3 @@ /**

fieldRegionalVariants.forEach(function (_ref) {
var regionalVariantKey = _ref.internal_unique_value;
var regionalVariantKey = _ref.api_value;
defaultMetadata[field.key][regionalVariantKey] = value;

@@ -25,0 +25,0 @@ });

@@ -6,3 +6,3 @@ {

"types": "types/index.d.ts",
"version": "0.0.0-beta.34",
"version": "0.0.0-beta.35",
"files": [

@@ -15,3 +15,3 @@ "/dist",

"dependencies": {
"@filerobot/icons": "0.0.0-beta.34",
"@filerobot/icons": "0.0.0-beta.35",
"abortcontroller-polyfill": "^1.4.0",

@@ -18,0 +18,0 @@ "lodash.throttle": "^4.1.1"

@@ -99,3 +99,3 @@ declare module '@filerobot/utils/lib/Translator' {

declare module '@filerobot/utils/lib/emitSocketProgress' {
import UploaderUtils = require('@filerobot/utils')
import FilerobotUtils = require('@filerobot/utils')

@@ -109,5 +109,5 @@ interface ProgressData {

function emitSocketProgress (
uploader: object,
filerobot: object,
progressData: ProgressData,
file: UploaderUtils.UploaderFile
file: FilerobotUtils.FilerobotFile
): void

@@ -128,5 +128,5 @@ export = emitSocketProgress

declare module '@filerobot/utils/lib/generateFileID' {
import UploaderUtils = require('@filerobot/utils')
import FilerobotUtils = require('@filerobot/utils')
function generateFileID (file: UploaderUtils.UploaderFile): string
function generateFileID (file: FilerobotUtils.FilerobotFile): string
export = generateFileID

@@ -156,5 +156,5 @@ }

declare module '@filerobot/utils/lib/getFileType' {
import UploaderUtils = require('@filerobot/utils')
import FilerobotUtils = require('@filerobot/utils')
function getFileType (file: UploaderUtils.UploaderFile): string | null
function getFileType (file: FilerobotUtils.FilerobotFile): string | null
export = getFileType

@@ -247,3 +247,3 @@ }

export type InternalMetadata = { name: string; type?: string }
export interface UploaderFile<
export interface FilerobotFile<
TMeta = IndexedObject<any>,

@@ -250,0 +250,0 @@ TBody = IndexedObject<any>

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