Skip to content

Commit f3895de

Browse files
Corrected README and json files errors
1 parent 0cc38b6 commit f3895de

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

CHANGELOG.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v1.0.0 (2017-07-18)
1+
# v1.0.x (2017-07-31)
22

33
## Bug Fixes
44

@@ -14,10 +14,8 @@
1414

1515
## Breaking Changes
1616

17-
* Use an instance of `JsonConvert` its class methods instead of the static methods
18-
17+
* Use an instance of `JsonConvert` and its class methods instead of the static methods
1918
* 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
20-
2119
* Removed the string method `deserializeString()` due to the fact that it is the same as `jsonConvert.deserialize()` combined with `JSON.stringify()`
2220

2321
# 0.9.6 (2017-01-18)

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json2typescript",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Provides TypeScript methods to map a JSON object to a JavaScript object on runtime",
55
"keywords": [
66
"convert",
@@ -41,11 +41,11 @@
4141
"phantomjs-prebuilt": "2.1.14",
4242
"typescript": "2.3.4"
4343
},
44-
"main": "./dist/index.js",
45-
"types": "./dist/index.d.ts",
44+
"main": "index.js",
4645
"files": [
47-
"dist",
48-
"src"
46+
"src/json2typescript",
47+
"index.ts",
48+
"index.js"
4949
],
5050
"repository": {
5151
"type": "git",

test/json2typescript.integration.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Integration tests', () => {
1616
// JSON DATA
1717
let human1JsonObject = {
1818
firstname: "Andreas",
19-
lastname: "Aeschlimann"
19+
lastname: "Muster"
2020
}
2121
let cat1JsonObject = {
2222
name: "Meowy",
@@ -87,7 +87,7 @@ describe('Integration tests', () => {
8787
// TYPESCRIPT INSTANCES
8888
let human1 = new Human();
8989
human1.firstname = "Andreas";
90-
human1.lastname = "Aeschlimann";
90+
human1.lastname = "Muster";
9191
let cat1 = new Cat();
9292
cat1.name = "Meowy";
9393
cat1.district = 100;

test/json2typescript.unit.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Unit tests', () => {
1717
// JSON DATA
1818
let human1JsonObject = {
1919
firstname: "Andreas",
20-
lastname: "Aeschlimann"
20+
lastname: "Muster"
2121
}
2222
let cat1JsonObject = {
2323
name: "Meowy",
@@ -93,7 +93,7 @@ describe('Unit tests', () => {
9393
// TYPESCRIPT INSTANCES
9494
let human1 = new Human();
9595
human1.firstname = "Andreas";
96-
human1.lastname = "Aeschlimann";
96+
human1.lastname = "Muster";
9797
let cat1 = new Cat();
9898
cat1.name = "Meowy";
9999
cat1.district = 100;
@@ -146,7 +146,7 @@ describe('Unit tests', () => {
146146
(<any>jsonConvert).deserializeObject_loopProperty(t_cat, "owner", {
147147
"owner": {
148148
firstname: "Andreas",
149-
lastname: "Aeschlimann"
149+
lastname: "Muster"
150150
}
151151
});
152152
expect(t_cat.owner.firstname).toEqual("Andreas");

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"index.ts",
2424
"src/json2typescript/json-convert",
2525
"src/json2typescript/json-convert-decorators.ts",
26-
"src/json2typescript/json-convert-enums.ts"
26+
"src/json2typescript/json-convert-enums.ts",
2727
"src/json2typescript/json-convert-options.ts",
28-
"src/json2typescript/json-custom-convert.ts",
28+
"src/json2typescript/json-custom-convert.ts"
2929
]
3030
}

0 commit comments

Comments
 (0)