Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uploadcare/api

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uploadcare/api - npm Package Compare versions

Comparing version 1.0.0-alpha to 1.0.0

index.js

91

package.json
{
"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]&nbsp;
[![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

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