New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

qiniu-js

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiniu-js - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

4

esm/upload/index.js
import Resume from './resume';
import Direct from './direct';
import { DEFAULT_CHUNK_SIZE } from './base';
import { MB } from '../utils';
export * from './base';

@@ -10,3 +10,3 @@ export * from './resume';

}
return options.file.size > DEFAULT_CHUNK_SIZE
return options.file.size > 4 * MB
? new Resume(options, handlers, statisticsLogger)

@@ -13,0 +13,0 @@ : new Direct(options, handlers, statisticsLogger);

import { Progress, LocalInfo } from './upload';
export declare const MB: number;
export declare function getChunks(file: File, blockSize: number): Blob[];

@@ -3,0 +4,0 @@ export declare function isMetaDataValid(params: {

@@ -50,3 +50,3 @@ var __assign = (this && this.__assign) || function () {

import { urlSafeBase64Decode } from './base64';
var MB = Math.pow(1024, 2);
export var MB = Math.pow(1024, 2);
// 文件分块

@@ -53,0 +53,0 @@ export function getChunks(file, blockSize) {

@@ -36,2 +36,4 @@ "use strict";

var _utils = require("../utils");
var _base = require("./base");

@@ -56,3 +58,3 @@

return options.file.size > _base.DEFAULT_CHUNK_SIZE ? new _resume["default"](options, handlers, statisticsLogger) : new _direct["default"](options, handlers, statisticsLogger);
return options.file.size > 4 * _utils.MB ? new _resume["default"](options, handlers, statisticsLogger) : new _direct["default"](options, handlers, statisticsLogger);
}

@@ -32,2 +32,3 @@ "use strict";

exports.getTransform = getTransform;
exports.MB = void 0;

@@ -223,2 +224,4 @@ require("core-js/modules/es6.regexp.split");

exports.MB = MB;
function getChunks(file, blockSize) {

@@ -225,0 +228,0 @@ var chunkByteSize = blockSize * MB; // 转换为字节

{
"name": "qiniu-js",
"jsName": "qiniu",
"version": "3.0.1",
"version": "3.0.2",
"private": false,

@@ -6,0 +6,0 @@ "description": "Javascript SDK for Qiniu Resource (Cloud) Storage AP",

import Resume from './resume'
import Direct from './direct'
import { UploadOptions, UploadHandler, DEFAULT_CHUNK_SIZE } from './base'
import { UploadOptions, UploadHandler } from './base'
import StatisticsLogger from '../statisticsLog'
import { MB } from '../utils'

@@ -18,5 +19,5 @@ export * from './base'

return options.file.size > DEFAULT_CHUNK_SIZE
return options.file.size > 4 * MB
? new Resume(options, handlers, statisticsLogger)
: new Direct(options, handlers, statisticsLogger)
}

@@ -5,3 +5,3 @@ import SparkMD5 from 'spark-md5'

const MB = 1024 ** 2
export const MB = 1024 ** 2

@@ -8,0 +8,0 @@ // 文件分块

@@ -17,3 +17,2 @@ {

"qiniu-js": "^2.5.4",
"uglifyjs-webpack-plugin": "^1.1.6",
"webpack": "^4.41.5",

@@ -20,0 +19,0 @@ "webpack-cli": "^3.3.11",

@@ -8,3 +8,3 @@ var path = require("path");

filename: "boundle.js",
path: path.resolve(__dirname, "dist/"),
path: path.resolve(__dirname, "webpack/"),
publicPath: "/test/"

@@ -39,3 +39,3 @@ },

contentBase: path.join(__dirname, "./"),
publicPath: "/dist/",
publicPath: "/webpack/",
hot: true,

@@ -42,0 +42,0 @@ inline: false

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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