Skip to content

Commit

Permalink
chore: release v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kytrun committed Apr 1, 2021
1 parent f7a2855 commit dd75ec4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions NetworkPlus/js/modules/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { jsonBeautify, isJSON } from './utils.js'
import { jsonBeautify, isJson } from './utils.js'
import dragAndResize from './resizablePanel.js'

const app = new Vue({
Expand Down Expand Up @@ -47,7 +47,7 @@ const app = new Vue({
let editRequestBody = ''
const editRequestBodyStr = document.getElementById('edit-request-body').innerText

if (isJSON(editRequestBodyStr)) {
if (isJson(editRequestBodyStr)) {
editRequestBody = JSON.stringify(JSON.parse(editRequestBodyStr))
} else {
editRequestBody = editRequestBodyStr === '\n' ? '{}' : editRequestBodyStr
Expand Down Expand Up @@ -83,7 +83,7 @@ const app = new Vue({

if (val.request.postData) {
const body = val.request.postData.text || '{}'
if (isJSON(body)) {
if (isJson(body)) {
this.requestPayload = JSON.stringify(JSON.parse(body), null, 4)
} else {
this.requestPayload = body
Expand All @@ -95,7 +95,7 @@ const app = new Vue({
if (val.response) {
this.responseHeader = val.response.headers
if (typeof val.response.body === 'string') {
if (isJSON(val.response.body)) {
if (isJson(val.response.body)) {
this.preview = jsonBeautify(JSON.stringify(JSON.parse(val.response.body), null, 4))
} else {
this.preview = val.response.body
Expand Down
2 changes: 1 addition & 1 deletion NetworkPlus/js/modules/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function isJSON(str) {
export function isJson(str) {
if (typeof str === 'string') {
try {
const obj = JSON.parse(str)
Expand Down
7 changes: 3 additions & 4 deletions NetworkPlus/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "Network+",
"version": "1.1.8",
"description": "DevTools for network recording and resending.",
"version": "1.2.0",
"description": "DevTools for network recording, editing and resending.",
"icons": {
"16": "img/icon_16.png",
"48": "img/icon_48.png",
Expand Down Expand Up @@ -30,8 +30,7 @@
"permissions": [
"webRequest",
"webRequestBlocking",
"http://*/*",
"https://*/*"
"*://*/*"
],
"homepage_url": "https://clear.studio",
"devtools_page": "devtools.html"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <img src="images/icon.svg" height="60px"/> Network+

## DevTools for network recording, modification and resending.
## DevTools for network recording, editing and resending.

1. Open the DevTools panel and find the tab with "Network+".
2. Make some HTTP request.
Expand Down

0 comments on commit dd75ec4

Please sign in to comment.