Skip to content

Commit

Permalink
Release 1.3.3
Browse files Browse the repository at this point in the history
* Added readonly attribute for clogy levels in typescript declaration file
  • Loading branch information
pgmanutd committed Apr 30, 2017
1 parent 1041363 commit 3b6683d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# clogy changelog

## 1.3.3

- Added readonly attribute for clogy levels in typescript declaration file

## 1.3.2

- Refactored index.d.ts
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ Installation

* ```Development```:

**rawgit**: ```//rawgit.com/pgmanutd/clogy/1.3.2/lib/clogy.js```
**rawgit**: ```//rawgit.com/pgmanutd/clogy/1.3.3/lib/clogy.js```

or

**unpkg**: ```//unpkg.com/clogy@1.3.2/lib/clogy.js```
**unpkg**: ```//unpkg.com/clogy@1.3.3/lib/clogy.js```

* ```Production```:

**rawgit**: ```//cdn.rawgit.com/pgmanutd/clogy/1.3.2/lib/clogy.min.js```
**rawgit**: ```//cdn.rawgit.com/pgmanutd/clogy/1.3.3/lib/clogy.min.js```

or

**unpkg**: ```//unpkg.com/clogy@1.3.2/lib/clogy.min.js```
**unpkg**: ```//unpkg.com/clogy@1.3.3/lib/clogy.min.js```


Usage
Expand Down
17 changes: 8 additions & 9 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
// Type definitions for clogy
// Project: https://github.com/pgmanutd/clogy
// Definitions by: Prashant Goel <https://github.com/pgmanutd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

type ClogyOptionsT = {
showDateTime?: boolean,
prefix?: string
};

type ClogyLevelsT = {
log: number,
trace: number,
debug: number,
info: number,
warn: number,
error: number,
none: number
readonly log: number,
readonly trace: number,
readonly debug: number,
readonly info: number,
readonly warn: number,
readonly error: number,
readonly none: number
};

interface IClogyLogger {
Expand All @@ -26,7 +25,7 @@ interface IClogyLogger {
stringifyAllowedLoggers(): string;
enableAllLevels(): void;
disableAllLevels(): void;
LEVELS: ClogyLevelsT;
readonly LEVELS: ClogyLevelsT;
log(...args: Array<any>): void;
trace(...args: Array<any>): void;
debug(...args: Array<any>): void;
Expand Down
2 changes: 1 addition & 1 deletion lib/clogy.js

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

2 changes: 1 addition & 1 deletion lib/clogy.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clogy",
"version": "1.3.2",
"version": "1.3.3",
"description": "A logging library for browsers and nodejs environment",
"homepage": "https://github.com/pgmanutd/clogy",
"author": {
Expand Down

0 comments on commit 3b6683d

Please sign in to comment.