Skip to content

Commit b1db692

Browse files
author
andrew85
committed
Remove unnecessary property 'etc'
1 parent 0fad1a0 commit b1db692

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# json-knife [![NPM version](https://img.shields.io/npm/v/json-knife.svg)](https://www.npmjs.com/package/json-knife) [![](https://data.jsdelivr.com/v1/package/gh/Andrew-Kang-G/json-knife/badge)](https://www.jsdelivr.com/package/gh/Andrew-Kang-G/json-knife)
22
## Overview
3-
Mass Update certain key-values recursively in huge, complex JSON string trees
3+
Mass update certain key-values recursively in huge, complex JSON string trees
44
without using JSON.parse() & self-calling function.
55

66
Zero dependency, 7KB

dist/json-knife.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "json-knife",
3-
"version": "1.0.0",
4-
"description": "Mass Update certain key-values recursively in huge, complex JSON string trees without using JSON.parse() & self-calling function.",
3+
"version": "1.0.1",
4+
"description": "Mass update certain key-values recursively in huge, complex JSON string trees without using JSON.parse() & self-calling function.",
55
"main": "src/entry.js",
66
"scripts": {
77
"build": "gulp",

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script class="jsbin" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
1919
<script src="../dist/json-knife.bundle.js"></script>
2020
<script type="text/javascript">
21-
21+
2222

2323
let original = '{\n' +
2424
' "prob\\"lems": [{\n' +

src/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function calculateSteps(original, key) {
7777
stepAreas.push({
7878
key: null,
7979
noKey : match[0],
80-
etc : match,
80+
//etc : match,
8181
step:step,
8282
previousLastIndex: previousLastIndex
8383
});
@@ -148,7 +148,7 @@ function calculateSteps(original, key) {
148148
stepAreas.push({
149149
key: match[2],
150150
noKey : null,
151-
etc : match,
151+
//etc : match,
152152
step: step,
153153
previousLastIndex: previousLastIndex
154154
});

0 commit comments

Comments
 (0)