@uploadcare/api
Advanced tools
Comparing version 1.0.0-alpha to 1.0.0
{ | ||
"name": "@uploadcare/api", | ||
"version": "1.0.0-alpha", | ||
"description": "JavaScript library for work with Uploadcare API", | ||
"main": "src/uploadcare.cjs.js", | ||
"module": "dist/uploadcare.esm.js", | ||
"browser": "dist/uploadcare.umd.js", | ||
"scripts": { | ||
"build": "flow && rollup -c rollup.config.js", | ||
"lint": "eslint .", | ||
"release": "release-it", | ||
"test": "npm run test:node && npm run test:browser", | ||
"test:node": "BABEL_ENV=test:jest jest --no-cache src/", | ||
"test:node:debug": "BABEL_ENV=test:jest node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watchAll src/", | ||
"test:browser": "BABEL_ENV=test node scripts/build-karma-injectables.js && karma start karma.config.js --single-run --nocache", | ||
"test:browser:debug": "BABEL_ENV=test node scripts/build-karma-injectables.js && karma start karma.config.js --browsers=Chrome --single-run=false --watch --debug --nocache" | ||
}, | ||
"version": "1.0.0", | ||
"description": "DEPRECATED <Library for work with Uploadcare Upload API>", | ||
"main": "index.js", | ||
"module": "index.js", | ||
"files": ["index.js"], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/uploadcare/uploadcare-javascript.git" | ||
"url": "git+https://github.com/uploadcare/uploadcare-upload-client.git" | ||
}, | ||
@@ -25,59 +15,16 @@ "author": "Uploadcare", | ||
"bugs": { | ||
"url": "https://github.com/uploadcare/uploadcare-javascript/issues" | ||
"url": "https://github.com/uploadcare/uploadcare-upload-client/issues" | ||
}, | ||
"homepage": "https://github.com/uploadcare/uploadcare-javascript#readme", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.47", | ||
"@babel/core": "^7.0.0-beta.47", | ||
"@babel/node": "^7.0.0-beta.47", | ||
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.47", | ||
"@babel/polyfill": "^7.0.0-beta.49", | ||
"@babel/preset-env": "^7.0.0-beta.47", | ||
"@babel/preset-flow": "^7.0.0-beta.47", | ||
"@babel/register": "^7.0.0-beta.47", | ||
"@uploadcare/release-it": "^1.0.1", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^8.2.3", | ||
"babel-jest": "^22.4.4", | ||
"data-uri-to-buffer": "^2.0.0", | ||
"dataurl-to-blob": "0.0.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-uploadcare": "^1.1.0", | ||
"eslint-plugin-flowtype": "^2.47.1", | ||
"flow-bin": "^0.73.0", | ||
"flow-typed": "^2.4.0", | ||
"husky": "^0.14.3", | ||
"jasmine": "^2.99.0", | ||
"jasmine-core": "^2.99.1", | ||
"jest": "^22.4.4", | ||
"jest-matchers": "^20.0.3", | ||
"jest-mock": "^23.1.0", | ||
"karma": "^2.0.2", | ||
"karma-browserstack-launcher": "^1.3.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-jasmine": "^1.1.2", | ||
"karma-rollup-preprocessor": "^6.0.0", | ||
"lodash": "^4.17.10", | ||
"prettier": "^1.12.1", | ||
"prettier-eslint": "^8.8.1", | ||
"prettierrc": "0.0.0-5", | ||
"puppeteer": "^1.4.0", | ||
"rollup": "^0.59.2", | ||
"rollup-plugin-babel": "^4.0.0-beta.4", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-license": "^0.6.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-globals": "^1.2.1", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-node-resolve-magic": "^0.2.9", | ||
"rollup-plugin-replace": "^2.0.0" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"form-data": "^2.3.2", | ||
"query-string": "^6.1.0" | ||
}, | ||
"peerDependencies": { | ||
"axios": "^0.18.0" | ||
} | ||
"homepage": "https://github.com/uploadcare/uploadcare-upload-client#readme", | ||
"keywords": [ | ||
"uploadcare", | ||
"file", | ||
"uploader", | ||
"image", | ||
"upload", | ||
"store", | ||
"cdn" | ||
], | ||
"devDependencies": {}, | ||
"dependencies": {} | ||
} |
@@ -1,58 +0,16 @@ | ||
# Uploadcare Javascript API | ||
# deprecated | ||
<a href="https://uploadcare.com/?utm_source=github&utm_campaign=uploadcare-javascript"> | ||
<img align="right" width="64" height="64" | ||
src="https://ucarecdn.com/2f4864b7-ed0e-4411-965b-8148623aa680/uploadcare-logo-mark.svg" | ||
alt=""> | ||
<a href="https://uploadcare.com/?utm_source=github&utm_campaign=uploadcare-upload-client"> | ||
<img align="right" width="64" height="64" | ||
src="https://ucarecdn.com/edfdf045-34c0-4087-bbdd-e3834921f890/userpiccircletransparent.svg" | ||
alt=""> | ||
</a> | ||
:bangbang: Work in progress. The API will be changed. Do not use it. Really. :bangbang: | ||
This is no longer supported, please consider using [@uploadcare/upload-client][uc-upload-client] instead. | ||
JavaScript library for work with Uploadcare API. | ||
[![NPM version][npm-img]][npm-url] | ||
[![GitHub release][badge-release-img]][badge-release-url] | ||
[![Uploadcare stack on StackShare][badge-stack-img]][badge-stack-url] | ||
* [Requirements](#requirements) | ||
* [Install](#install) | ||
* [Usage](#usage) | ||
* [Configuration](#configuration) | ||
* [Security issues](#security-issues) | ||
* [Feedback](#feedback) | ||
## Requirements | ||
## Install | ||
```bash | ||
npm install @uploadcare/api --save | ||
``` | ||
## Usage | ||
```javascript | ||
import {UploadAPI} from '@uploadcare/api' | ||
UploadAPI.request(method, path, {query, body}) | ||
UploadAPI.base(file, {publicKey, store}) | ||
UploadAPI.fromUrl(url, {publicKey, store, fileName}) | ||
UploadAPI.fromUrlStatus(token) | ||
UploadAPI.group([uuids], {publicKey}) | ||
UploadAPI.groupInfo(groupId, {publicKey}) | ||
UploadAPI.info(uuid, {publicKey}) | ||
UploadAPI.multipartStart({publicKey, filename, size}) | ||
UploadAPI.multipartUpload(partUrl, data) | ||
UploadAPI.multipartComplete(uuid, {publicKey}) | ||
``` | ||
## Configuration | ||
## Security issues | ||
If you think you ran into something in Uploadcare libraries which might have | ||
security implications, please hit us up at [bugbounty@uploadcare.com][uc-email-bounty] | ||
or Hackerone. | ||
If you think you ran into something in Uploadcare libraries that might have | ||
security implications, please hit us up at | ||
[bugbounty@uploadcare.com][uc-email-bounty] or Hackerone. | ||
@@ -69,10 +27,2 @@ We'll contact you personally in a short time to fix an issue through co-op and | ||
[uc-email-hello]: mailto:hello@uploadcare.com | ||
[github-releases]: https://github.com/uploadcare/uploadcare-javascript/releases | ||
[github-branch-release]: https://github.com/uploadcare/uploadcare-javascript/tree/release | ||
[github-contributors]: https://github.com/uploadcare/uploadcare-javascript/graphs/contributors | ||
[badge-stack-img]: https://img.shields.io/badge/tech-stack-0690fa.svg?style=flat | ||
[badge-stack-url]: https://stackshare.io/uploadcare/stacks/ | ||
[badge-release-img]: https://img.shields.io/github/release/uploadcare/uploadcare-javascript.svg | ||
[badge-release-url]: https://github.com/uploadcare/uploadcare-javascript/releases | ||
[npm-img]: http://img.shields.io/npm/v/@uploadcare/api.svg | ||
[npm-url]: https://www.npmjs.org/package/@uploadcare/api | ||
[uc-upload-client]: https://github.com/uploadcare/uploadcare-upload-client |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
0
0
0
2871
4
1
1
28
3
- Removedaxios@^0.18.0
- Removedform-data@^2.3.2
- Removedquery-string@^6.1.0
- Removedasynckit@0.4.0(transitive)
- Removedaxios@0.18.1(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedfilter-obj@1.1.0(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removedform-data@2.5.2(transitive)
- Removedis-buffer@2.0.5(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedquery-string@6.14.1(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsplit-on-first@1.1.0(transitive)
- Removedstrict-uri-encode@2.0.0(transitive)