Skip to content

Commit 4971f0e

Browse files
authored
Merge pull request #11 from dabapps/es5-support
ES5 support
2 parents b360f4e + b9c4cce commit 4971f0e

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ To install the package run:
1414
npm i @dabapps/django-s3-file-upload -S
1515
```
1616

17+
### Compatibility
18+
19+
You will also need polyfills for both `Promises` and `Symbols` if you wish to target older browsers.
20+
1721
## Usage
1822

1923
### How it works

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dabapps/django-s3-file-upload",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Upload files from the browser to S3 - client side implementation",
55
"main": "dist/index.js",
66
"directories": {},
@@ -14,7 +14,7 @@
1414
"prettier-check": "prettier --check '**/*.{ts,tsx,js,jsx}'",
1515
"prettier": "prettier --write '**/*.{ts,tsx,js,jsx}'",
1616
"tests": "jest",
17-
"test": "npm run lint && npm run typecheck && npm run tests -- --runInBand --coverage",
17+
"test": "npm run dist && npm run lint && npm run typecheck && npm run tests -- --runInBand --coverage",
1818
"prepublishOnly": "npm run dist"
1919
},
2020
"repository": {

tsconfig.dist.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
"declaration": true,
55
"sourceMap": true,
66
"listEmittedFiles": true,
7+
"target": "es5",
8+
"lib": [
9+
"es5",
10+
"dom",
11+
"es2015.promise",
12+
"es2015.symbol"
13+
],
714
"rootDir": "./src/",
815
"outDir": "./dist/"
916
},

0 commit comments

Comments
 (0)