Task order uploads and downloads were broken. Uploads were broken because file content was eing read in as plaintext every time, resulting in encoding issues. I updated the bundle to use the newer Azure JS SDK. We can now use a method for uploading browser files directly without having to read their content. This required a few small internal changes to the upload component, since the response structure is different. I also removed the `downloadUrl` method from the JS uploader since it was not being used. Downloads were broken because the method that generates the download link was not updated to use the BlobSasPermissions class from the updated Azure Python SDK.
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"name": "atst",
|
|
"version": "1.0.0",
|
|
"description": "ATST Stateless Services",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"watch": "parcel watch js/index.js -d static/assets --public-url /static/assets -o index.js --no-autoinstall",
|
|
"build": "parcel build js/index.js -d static/assets --public-url /static/assets -o index.js",
|
|
"build-prod": "parcel build js/index.js -d static/assets --public-url $CDN_URL -o index.js",
|
|
"test": "jest",
|
|
"test:coverage": "jest --coverage --collectCoverageFrom='js/**/*.js'",
|
|
"test:watch": "jest --watch --no-cache"
|
|
},
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@azure/storage-blob": "^12.0.2",
|
|
"ally.js": "^1.4.1",
|
|
"autoprefixer": "^9.1.3",
|
|
"babel-polyfill": "^6.26.0",
|
|
"date-fns": "^1.29.0",
|
|
"ramda": "^0.25.0",
|
|
"stickybits": "^3.6.6",
|
|
"svg-innerhtml": "^1.1.0",
|
|
"text-mask-addons": "^3.8.0",
|
|
"uswds": "^1.6.9",
|
|
"v-tooltip": "^2.0.2",
|
|
"vue": "2.5.15",
|
|
"vue-text-mask": "^6.1.2",
|
|
"whatwg-fetch": "^3.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vue/test-utils": "^1.0.0-beta.25",
|
|
"babel-core": "^6.26.3",
|
|
"babel-jest": "^23.6.0",
|
|
"babel-preset-env": "^1.7.0",
|
|
"jest": "^23.6.0",
|
|
"jest-serializer-vue": "^2.0.2",
|
|
"node-sass": "^4.9.2",
|
|
"parcel-bundler": "^1.10.3",
|
|
"prettier": "^1.16.1",
|
|
"vue-template-compiler": "2.5.15"
|
|
},
|
|
"resolutions": {
|
|
"parcel-bundler/**/lodash": "^4.17.13"
|
|
},
|
|
"browserslist": [
|
|
"last 3 version",
|
|
"> 5%",
|
|
"IE 10"
|
|
],
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
|
|
},
|
|
"snapshotSerializers": [
|
|
"<rootDir>/node_modules/jest-serializer-vue"
|
|
]
|
|
}
|
|
}
|