-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix user input header MD5 value being overwritten problem (#1100) * fix: 修复header MD5值被覆盖问题 * fix: fix user input header MD5 value being overwritten problem Co-authored-by: Undefined <peizerao@gmail.com> fix: upgrade address from 1.1.2 to 1.2.0 (#1114) Snyk has created this PR to upgrade address from 1.1.2 to 1.2.0. See this package in npm: https://www.npmjs.com/package/address See this project in Snyk: https://app.snyk.io/org/peterrao/project/35a041fe-176f-4d94-aa1b-d65c35239c28?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <snyk-bot@snyk.io> chore: change js to ts
- Loading branch information
Showing
19 changed files
with
446 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getBucketStat = void 0; | ||
const checkBucketName_1 = require('../utils/checkBucketName'); | ||
|
||
const checkBucketName_1 = require("../utils/checkBucketName"); | ||
async function getBucketStat(name, options) { | ||
name = name || this.options.bucket; | ||
checkBucketName_1.checkBucketName(name); | ||
const params = this._bucketRequestParams('GET', name, 'stat', options); | ||
params.successStatuses = [200]; | ||
params.xmlResponse = true; | ||
const result = await this.request(params); | ||
return { | ||
res: result.res, | ||
stat: result.data | ||
}; | ||
name = name || this.options.bucket; | ||
checkBucketName_1.checkBucketName(name); | ||
const params = this._bucketRequestParams('GET', name, 'stat', options); | ||
params.successStatuses = [200]; | ||
params.xmlResponse = true; | ||
const result = await this.request(params); | ||
return { | ||
res: result.res, | ||
stat: result.data | ||
}; | ||
} | ||
exports.getBucketStat = getBucketStat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare const checkCrc64: (content: any, oss_crc64: any) => boolean; | ||
export declare const checkCrc64Stream: (stream: any, callback: any) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
const { crc64, crc64File } = require('../../crc64'); | ||
|
||
module.exports = { | ||
checkCrc64: (content, oss_crc64) => { | ||
if (crc64(content) === oss_crc64) return true; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkCrc64Stream = exports.checkCrc64 = void 0; | ||
const crc64_1 = require("../../crc64"); | ||
exports.checkCrc64 = (content, oss_crc64) => { | ||
if (crc64_1.crc64(content) === oss_crc64) | ||
return true; | ||
return false; | ||
}, | ||
checkCrc64Stream: (stream, callback) => { | ||
crc64File(stream, callback); | ||
} | ||
}; | ||
exports.checkCrc64Stream = (stream, callback) => { | ||
crc64_1.crc64File(stream, callback); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { crc64, crc64File } from '../../crc64'; | ||
|
||
export const checkCrc64 = (content, oss_crc64) => { | ||
if (crc64(content) === oss_crc64) return true; | ||
return false; | ||
}; | ||
export const checkCrc64Stream = (stream, callback) => { | ||
crc64File(stream, callback); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.omit = void 0; | ||
function omit(originalObject, keysToOmit) { | ||
const cloneObject = Object.assign({}, originalObject); | ||
for (const path of keysToOmit) { | ||
delete cloneObject[path]; | ||
} | ||
return cloneObject; | ||
const cloneObject = Object.assign({}, originalObject); | ||
for (const path of keysToOmit) { | ||
delete cloneObject[path]; | ||
} | ||
return cloneObject; | ||
} | ||
exports.omit = omit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 27 additions & 27 deletions
54
lib/crc64/dist/x64-darwin/Release/.deps/Release/obj.target/crc64/crc64.o.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
cmd_Release/obj.target/crc64/crc64.o := c++ -o Release/obj.target/crc64/crc64.o ../crc64.cpp '-DNODE_GYP_MODULE_NAME=crc64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/gang/Library/Caches/node-gyp/16.3.0/include/node -I/Users/gang/Library/Caches/node-gyp/16.3.0/src -I/Users/gang/Library/Caches/node-gyp/16.3.0/deps/openssl/config -I/Users/gang/Library/Caches/node-gyp/16.3.0/deps/openssl/openssl/include -I/Users/gang/Library/Caches/node-gyp/16.3.0/deps/uv/include -I/Users/gang/Library/Caches/node-gyp/16.3.0/deps/zlib -I/Users/gang/Library/Caches/node-gyp/16.3.0/deps/v8/include -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++14 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/crc64/crc64.o.d.raw -c | ||
cmd_Release/obj.target/crc64/crc64.o := c++ -o Release/obj.target/crc64/crc64.o ../crc64.cpp '-DNODE_GYP_MODULE_NAME=crc64' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node -I/Users/xutao/Library/Caches/node-gyp/16.15.1/src -I/Users/xutao/Library/Caches/node-gyp/16.15.1/deps/openssl/config -I/Users/xutao/Library/Caches/node-gyp/16.15.1/deps/openssl/openssl/include -I/Users/xutao/Library/Caches/node-gyp/16.15.1/deps/uv/include -I/Users/xutao/Library/Caches/node-gyp/16.15.1/deps/zlib -I/Users/xutao/Library/Caches/node-gyp/16.15.1/deps/v8/include -O3 -gdwarf-2 -mmacosx-version-min=10.13 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++14 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/crc64/crc64.o.d.raw -c | ||
Release/obj.target/crc64/crc64.o: ../crc64.cpp \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/cppgc/common.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8config.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8-internal.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8-version.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8-platform.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_version.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_api.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/js_native_api.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/js_native_api_types.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_api_types.h \ | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_buffer.h | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/cppgc/common.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8config.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8-internal.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8-version.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8-platform.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_version.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_api.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/js_native_api.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/js_native_api_types.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_api_types.h \ | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_buffer.h | ||
../crc64.cpp: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/cppgc/common.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8config.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8-internal.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8-version.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/v8-platform.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_version.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_api.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/js_native_api.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/js_native_api_types.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_api_types.h: | ||
/Users/gang/Library/Caches/node-gyp/16.3.0/include/node/node_buffer.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/cppgc/common.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8config.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8-internal.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8-version.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/v8-platform.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_version.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_api.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/js_native_api.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/js_native_api_types.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_api_types.h: | ||
/Users/xutao/Library/Caches/node-gyp/16.15.1/include/node/node_buffer.h: |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.