Skip to content

Commit

Permalink
Merge pull request #11 from dabapps/es5-support
Browse files Browse the repository at this point in the history
ES5 support
  • Loading branch information
JakeSidSmith authored Sep 9, 2019
2 parents b360f4e + b9c4cce commit 4971f0e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ To install the package run:
npm i @dabapps/django-s3-file-upload -S
```

### Compatibility

You will also need polyfills for both `Promises` and `Symbols` if you wish to target older browsers.

## Usage

### How it works
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dabapps/django-s3-file-upload",
"version": "0.1.1",
"version": "0.1.2",
"description": "Upload files from the browser to S3 - client side implementation",
"main": "dist/index.js",
"directories": {},
Expand All @@ -14,7 +14,7 @@
"prettier-check": "prettier --check '**/*.{ts,tsx,js,jsx}'",
"prettier": "prettier --write '**/*.{ts,tsx,js,jsx}'",
"tests": "jest",
"test": "npm run lint && npm run typecheck && npm run tests -- --runInBand --coverage",
"test": "npm run dist && npm run lint && npm run typecheck && npm run tests -- --runInBand --coverage",
"prepublishOnly": "npm run dist"
},
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"declaration": true,
"sourceMap": true,
"listEmittedFiles": true,
"target": "es5",
"lib": [
"es5",
"dom",
"es2015.promise",
"es2015.symbol"
],
"rootDir": "./src/",
"outDir": "./dist/"
},
Expand Down

0 comments on commit 4971f0e

Please sign in to comment.