Skip to content

Commit

Permalink
Export Array2 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
ooflorent committed Jan 6, 2015
1 parent 48c8992 commit 5ef6765
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## 1.1.0

* Update `6to5`
* Export `Array2` as `default`

## 1.0.0

* Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ npm install --save speedr-array2
## Usage

```js
import {Array2} from 'speedr-array2'
import Array2 from 'speedr-array2'

const Tiles = {
SAND: 0,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "speedr-array2",
"version": "1.0.0",
"version": "1.1.0",
"description": "Two-dimensional array",
"author": "Florent Cailhol <[email protected]>",
"repository": "speedr/array2",
Expand All @@ -18,7 +18,7 @@
"prepublish": "npm run build"
},
"devDependencies": {
"6to5": "^2.2.0"
"6to5": "^2.6.2"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export class Array2 {
export default class Array2 {
constructor(w, h, initValue) {
this.w = w
this.h = h
Expand Down

0 comments on commit 5ef6765

Please sign in to comment.