Skip to content

Commit

Permalink
Corrected README and json files errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-aeschlimann committed Jul 30, 2017
1 parent 0cc38b6 commit f3895de
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v1.0.0 (2017-07-18)
# v1.0.x (2017-07-31)

## Bug Fixes

Expand All @@ -14,10 +14,8 @@

## Breaking Changes

* Use an instance of `JsonConvert` its class methods instead of the static methods

* Use an instance of `JsonConvert` and its class methods instead of the static methods
* The static class properties `valueCheckingMode` and `debugMode` are not static anymore. `debugMode` has been renamed to `operationMode`. Their values should be assigned through the given enums with the same name

* Removed the string method `deserializeString()` due to the fact that it is the same as `jsonConvert.deserialize()` combined with `JSON.stringify()`

# 0.9.6 (2017-01-18)
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json2typescript",
"version": "1.0.0",
"version": "1.0.2",
"description": "Provides TypeScript methods to map a JSON object to a JavaScript object on runtime",
"keywords": [
"convert",
Expand Down Expand Up @@ -41,11 +41,11 @@
"phantomjs-prebuilt": "2.1.14",
"typescript": "2.3.4"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "index.js",
"files": [
"dist",
"src"
"src/json2typescript",
"index.ts",
"index.js"
],
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions test/json2typescript.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Integration tests', () => {
// JSON DATA
let human1JsonObject = {
firstname: "Andreas",
lastname: "Aeschlimann"
lastname: "Muster"
}
let cat1JsonObject = {
name: "Meowy",
Expand Down Expand Up @@ -87,7 +87,7 @@ describe('Integration tests', () => {
// TYPESCRIPT INSTANCES
let human1 = new Human();
human1.firstname = "Andreas";
human1.lastname = "Aeschlimann";
human1.lastname = "Muster";
let cat1 = new Cat();
cat1.name = "Meowy";
cat1.district = 100;
Expand Down
6 changes: 3 additions & 3 deletions test/json2typescript.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Unit tests', () => {
// JSON DATA
let human1JsonObject = {
firstname: "Andreas",
lastname: "Aeschlimann"
lastname: "Muster"
}
let cat1JsonObject = {
name: "Meowy",
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('Unit tests', () => {
// TYPESCRIPT INSTANCES
let human1 = new Human();
human1.firstname = "Andreas";
human1.lastname = "Aeschlimann";
human1.lastname = "Muster";
let cat1 = new Cat();
cat1.name = "Meowy";
cat1.district = 100;
Expand Down Expand Up @@ -146,7 +146,7 @@ describe('Unit tests', () => {
(<any>jsonConvert).deserializeObject_loopProperty(t_cat, "owner", {
"owner": {
firstname: "Andreas",
lastname: "Aeschlimann"
lastname: "Muster"
}
});
expect(t_cat.owner.firstname).toEqual("Andreas");
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"index.ts",
"src/json2typescript/json-convert",
"src/json2typescript/json-convert-decorators.ts",
"src/json2typescript/json-convert-enums.ts"
"src/json2typescript/json-convert-enums.ts",
"src/json2typescript/json-convert-options.ts",
"src/json2typescript/json-custom-convert.ts",
"src/json2typescript/json-custom-convert.ts"
]
}

0 comments on commit f3895de

Please sign in to comment.