Skip to content

Commit

Permalink
fix: remove default export to match type definitions (#3)
Browse files Browse the repository at this point in the history
* fix: remove default export to match type definitions.

* chore(package.json): bump patch version to 0.7.1
  • Loading branch information
supitsdu authored Apr 28, 2024
1 parent f30e24e commit 8b0f26c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colorus",
"version": "0.7.0",
"version": "0.7.1",
"description": "Sleek and powerful color manipulation library for JavaScript.",
"type": "module",
"main": "./dist/index.js",
Expand Down
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as serialize from './serialize'
/**
* Utility class providing methods for working with colors.
*/
class Colorus {
export class Colorus {
#data = {}

/**
Expand Down Expand Up @@ -191,5 +191,3 @@ class Colorus {
return new Colorus(compose.invert(this.#data.rgb))
}
}

export default Colorus
2 changes: 1 addition & 1 deletion test/main.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Colorus from '../src/main'
import { Colorus } from '../src/main'

describe('Colorus.darken()', () => {
it('darkens by default amount', () => {
Expand Down

0 comments on commit 8b0f26c

Please sign in to comment.