@aws-amplify/storage
Advanced tools
Comparing version 6.6.7 to 6.6.8-unstable.63bceab.0
@@ -11,14 +11,4 @@ 'use strict'; | ||
const hasher = new md5_js_1.Md5(); | ||
if (typeof content === 'string') { | ||
hasher.update(content); | ||
} | ||
else if (ArrayBuffer.isView(content) || content instanceof ArrayBuffer) { | ||
const blob = new Blob([content]); | ||
const buffer = await readFile(blob); | ||
hasher.update(buffer); | ||
} | ||
else { | ||
const buffer = await readFile(content); | ||
hasher.update(buffer); | ||
} | ||
const buffer = content instanceof Blob ? await readFile(content) : content; | ||
hasher.update(buffer); | ||
const digest = await hasher.digest(); | ||
@@ -25,0 +15,0 @@ return (0, utils_1.toBase64)(digest); |
@@ -15,14 +15,4 @@ 'use strict'; | ||
const hasher = new md5_js_1.Md5(); | ||
if (typeof content === 'string') { | ||
hasher.update(content); | ||
} | ||
else if (ArrayBuffer.isView(content) || content instanceof ArrayBuffer) { | ||
const blob = new Blob([content]); | ||
const buffer = await readFile(blob); | ||
hasher.update(buffer); | ||
} | ||
else { | ||
const buffer = await readFile(content); | ||
hasher.update(buffer); | ||
} | ||
const buffer = content instanceof Blob ? await readFile(content) : content; | ||
hasher.update(buffer); | ||
const digest = await hasher.digest(); | ||
@@ -29,0 +19,0 @@ return (0, utils_1.toBase64)(digest); |
214
package.json
{ | ||
"name": "@aws-amplify/storage", | ||
"version": "6.6.7", | ||
"description": "Storage category of aws-amplify", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.mjs", | ||
"react-native": { | ||
"./dist/cjs/index": "./src/index.ts", | ||
"fast-xml-parser": "fast-xml-parser", | ||
"buffer": "buffer" | ||
}, | ||
"typings": "./dist/esm/index.d.ts", | ||
"browser": { | ||
"./dist/esm/providers/s3/utils/client/runtime/base64/index.native.mjs": "./dist/esm/providers/s3/utils/client/runtime/base64/index.browser.mjs", | ||
"./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/fetch.mjs": "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/xhr.mjs", | ||
"./dist/esm/providers/s3/utils/client/runtime/xmlParser/pureJs.mjs": "./dist/esm/providers/s3/utils/client/runtime/xmlParser/dom.mjs", | ||
"fast-xml-parser": false, | ||
"buffer": false | ||
}, | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && jest -w 1 --coverage --logHeapUsage", | ||
"build-with-test": "npm test && npm run build", | ||
"build:umd": "webpack && webpack --config ./webpack.config.dev.js", | ||
"build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", | ||
"build:watch": "npm run build:esm-cjs -- --watch", | ||
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd", | ||
"clean": "npm run clean:size && rimraf lib-esm lib dist", | ||
"clean:size": "rimraf dual-publish-tmp tmp*", | ||
"format": "echo \"Not implemented\"", | ||
"lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage", | ||
"lint:fix": "eslint '**/*.{ts,tsx}' --fix", | ||
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31" | ||
}, | ||
"typesVersions": { | ||
">=4.2": { | ||
"s3": [ | ||
"./dist/esm/providers/s3/index.d.ts" | ||
], | ||
"server": [ | ||
"./dist/esm/server.d.ts" | ||
], | ||
"s3/server": [ | ||
"./dist/esm/providers/s3/server.d.ts" | ||
] | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aws-amplify/amplify-js.git" | ||
}, | ||
"author": "Amazon Web Services", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/aws/aws-amplify/issues" | ||
}, | ||
"homepage": "https://aws-amplify.github.io/", | ||
"files": [ | ||
"dist/cjs", | ||
"dist/esm", | ||
"src", | ||
"server", | ||
"s3" | ||
], | ||
"dependencies": { | ||
"@aws-sdk/types": "3.398.0", | ||
"@smithy/md5-js": "2.0.7", | ||
"buffer": "4.9.2", | ||
"fast-xml-parser": "^4.4.1", | ||
"tslib": "^2.5.0" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/esm/index.d.ts", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/cjs/index.js", | ||
"react-native": "./src/index.ts" | ||
}, | ||
"./server": { | ||
"types": "./dist/esm/server.d.ts", | ||
"import": "./dist/esm/server.mjs", | ||
"require": "./dist/cjs/server.js" | ||
}, | ||
"./s3": { | ||
"types": "./dist/esm/providers/s3/index.d.ts", | ||
"import": "./dist/esm/providers/s3/index.mjs", | ||
"require": "./dist/cjs/providers/s3/index.js", | ||
"react-native": "./src/providers/s3/index.ts" | ||
}, | ||
"./s3/server": { | ||
"types": "./dist/esm/providers/s3/server.d.ts", | ||
"import": "./dist/esm/providers/s3/server.mjs", | ||
"require": "./dist/cjs/providers/s3/server.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"peerDependencies": { | ||
"@aws-amplify/core": "^6.1.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-amplify/core": "6.4.2", | ||
"@aws-amplify/react-native": "1.1.5", | ||
"typescript": "5.0.2" | ||
}, | ||
"gitHead": "716cc95cb08bc1e700b3f57752457be28d18e4fd" | ||
"name": "@aws-amplify/storage", | ||
"version": "6.6.8-unstable.63bceab.0+63bceab", | ||
"description": "Storage category of aws-amplify", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.mjs", | ||
"react-native": { | ||
"./dist/cjs/index": "./src/index.ts", | ||
"fast-xml-parser": "fast-xml-parser", | ||
"buffer": "buffer" | ||
}, | ||
"typings": "./dist/esm/index.d.ts", | ||
"browser": { | ||
"./dist/esm/providers/s3/utils/client/runtime/base64/index.native.mjs": "./dist/esm/providers/s3/utils/client/runtime/base64/index.browser.mjs", | ||
"./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/fetch.mjs": "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/xhr.mjs", | ||
"./dist/esm/providers/s3/utils/client/runtime/xmlParser/pureJs.mjs": "./dist/esm/providers/s3/utils/client/runtime/xmlParser/dom.mjs", | ||
"fast-xml-parser": false, | ||
"buffer": false | ||
}, | ||
"sideEffects": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && jest -w 1 --coverage --logHeapUsage", | ||
"build-with-test": "npm test && npm run build", | ||
"build:umd": "webpack && webpack --config ./webpack.config.dev.js", | ||
"build:esm-cjs": "rollup --forceExit -c rollup.config.mjs", | ||
"build:watch": "npm run build:esm-cjs -- --watch", | ||
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd", | ||
"clean": "npm run clean:size && rimraf lib-esm lib dist", | ||
"clean:size": "rimraf dual-publish-tmp tmp*", | ||
"format": "echo \"Not implemented\"", | ||
"lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage", | ||
"lint:fix": "eslint '**/*.{ts,tsx}' --fix", | ||
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31" | ||
}, | ||
"typesVersions": { | ||
">=4.2": { | ||
"s3": [ | ||
"./dist/esm/providers/s3/index.d.ts" | ||
], | ||
"server": [ | ||
"./dist/esm/server.d.ts" | ||
], | ||
"s3/server": [ | ||
"./dist/esm/providers/s3/server.d.ts" | ||
] | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aws-amplify/amplify-js.git" | ||
}, | ||
"author": "Amazon Web Services", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/aws/aws-amplify/issues" | ||
}, | ||
"homepage": "https://aws-amplify.github.io/", | ||
"files": [ | ||
"dist/cjs", | ||
"dist/esm", | ||
"src", | ||
"server", | ||
"s3" | ||
], | ||
"dependencies": { | ||
"@aws-sdk/types": "3.398.0", | ||
"@smithy/md5-js": "2.0.7", | ||
"buffer": "4.9.2", | ||
"fast-xml-parser": "^4.4.1", | ||
"tslib": "^2.5.0" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/esm/index.d.ts", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/cjs/index.js", | ||
"react-native": "./src/index.ts" | ||
}, | ||
"./server": { | ||
"types": "./dist/esm/server.d.ts", | ||
"import": "./dist/esm/server.mjs", | ||
"require": "./dist/cjs/server.js" | ||
}, | ||
"./s3": { | ||
"types": "./dist/esm/providers/s3/index.d.ts", | ||
"import": "./dist/esm/providers/s3/index.mjs", | ||
"require": "./dist/cjs/providers/s3/index.js", | ||
"react-native": "./src/providers/s3/index.ts" | ||
}, | ||
"./s3/server": { | ||
"types": "./dist/esm/providers/s3/server.d.ts", | ||
"import": "./dist/esm/providers/s3/server.mjs", | ||
"require": "./dist/cjs/providers/s3/server.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"peerDependencies": { | ||
"@aws-amplify/core": "6.4.3-unstable.63bceab.0+63bceab" | ||
}, | ||
"devDependencies": { | ||
"@aws-amplify/core": "6.4.3-unstable.63bceab.0+63bceab", | ||
"@aws-amplify/react-native": "1.1.6-unstable.63bceab.0+63bceab", | ||
"typescript": "5.0.2" | ||
}, | ||
"gitHead": "63bceabcaf0085fa46aa2d5c976fed709c63ef9d" | ||
} |
@@ -17,12 +17,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
const hasher = new Md5(); | ||
if (typeof content === 'string') { | ||
hasher.update(content); | ||
} else if (ArrayBuffer.isView(content) || content instanceof ArrayBuffer) { | ||
const blob = new Blob([content]); | ||
const buffer = await readFile(blob); | ||
hasher.update(buffer); | ||
} else { | ||
const buffer = await readFile(content); | ||
hasher.update(buffer); | ||
} | ||
const buffer = content instanceof Blob ? await readFile(content) : content; | ||
hasher.update(buffer); | ||
const digest = await hasher.digest(); | ||
@@ -29,0 +21,0 @@ |
@@ -12,12 +12,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
const hasher = new Md5(); | ||
if (typeof content === 'string') { | ||
hasher.update(content); | ||
} else if (ArrayBuffer.isView(content) || content instanceof ArrayBuffer) { | ||
const blob = new Blob([content]); | ||
const buffer = await readFile(blob); | ||
hasher.update(buffer); | ||
} else { | ||
const buffer = await readFile(content); | ||
hasher.update(buffer); | ||
} | ||
const buffer = content instanceof Blob ? await readFile(content) : content; | ||
hasher.update(buffer); | ||
const digest = await hasher.digest(); | ||
@@ -24,0 +16,0 @@ |
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 not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1448081
20460
1
1