Skip to content

Commit

Permalink
Merge pull request #81 from dr86ansixavier/bugfix/Issue80_InfiniteLoo…
Browse files Browse the repository at this point in the history
…pForNestedObjectDeserialisation

Fixing infinite loop issue which occurred due to wrong fetch from array
  • Loading branch information
shakilsiraj authored Nov 23, 2023
2 parents 5f0b36f + 3a77184 commit 66c9872
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 161 deletions.
28 changes: 17 additions & 11 deletions dist/ObjectMapper.js

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

2 changes: 1 addition & 1 deletion dist/ObjectMapper.js.map

Large diffs are not rendered by default.

148 changes: 1 addition & 147 deletions package-lock.json

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": "json-object-mapper",
"version": "1.7.1",
"version": "1.7.2",
"description": "A TypeScript library to serialize and deserialize JSON objects in a fast and non-recursive way",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export namespace ObjectMapper {
converstionFunctionsArray.push(struct);
});

let conversionFunctionStructure: ConversionFunctionStructure = converstionFunctionsArray[0];
let conversionFunctionStructure: ConversionFunctionStructure = (converstionFunctionsArray.length > 0)? converstionFunctionsArray.pop() : undefined;

// tslint:disable-next-line:triple-equals
while (conversionFunctionStructure != undefined) {
Expand Down

0 comments on commit 66c9872

Please sign in to comment.