Skip to content

Commit dd75ec4

Browse files
committed
chore: release v1.2.0
1 parent f7a2855 commit dd75ec4

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

NetworkPlus/js/modules/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { jsonBeautify, isJSON } from './utils.js'
1+
import { jsonBeautify, isJson } from './utils.js'
22
import dragAndResize from './resizablePanel.js'
33

44
const app = new Vue({
@@ -47,7 +47,7 @@ const app = new Vue({
4747
let editRequestBody = ''
4848
const editRequestBodyStr = document.getElementById('edit-request-body').innerText
4949

50-
if (isJSON(editRequestBodyStr)) {
50+
if (isJson(editRequestBodyStr)) {
5151
editRequestBody = JSON.stringify(JSON.parse(editRequestBodyStr))
5252
} else {
5353
editRequestBody = editRequestBodyStr === '\n' ? '{}' : editRequestBodyStr
@@ -83,7 +83,7 @@ const app = new Vue({
8383

8484
if (val.request.postData) {
8585
const body = val.request.postData.text || '{}'
86-
if (isJSON(body)) {
86+
if (isJson(body)) {
8787
this.requestPayload = JSON.stringify(JSON.parse(body), null, 4)
8888
} else {
8989
this.requestPayload = body
@@ -95,7 +95,7 @@ const app = new Vue({
9595
if (val.response) {
9696
this.responseHeader = val.response.headers
9797
if (typeof val.response.body === 'string') {
98-
if (isJSON(val.response.body)) {
98+
if (isJson(val.response.body)) {
9999
this.preview = jsonBeautify(JSON.stringify(JSON.parse(val.response.body), null, 4))
100100
} else {
101101
this.preview = val.response.body

NetworkPlus/js/modules/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function isJSON(str) {
1+
export function isJson(str) {
22
if (typeof str === 'string') {
33
try {
44
const obj = JSON.parse(str)

NetworkPlus/manifest.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"manifest_version": 2,
33
"name": "Network+",
4-
"version": "1.1.8",
5-
"description": "DevTools for network recording and resending.",
4+
"version": "1.2.0",
5+
"description": "DevTools for network recording, editing and resending.",
66
"icons": {
77
"16": "img/icon_16.png",
88
"48": "img/icon_48.png",
@@ -30,8 +30,7 @@
3030
"permissions": [
3131
"webRequest",
3232
"webRequestBlocking",
33-
"http://*/*",
34-
"https://*/*"
33+
"*://*/*"
3534
],
3635
"homepage_url": "https://clear.studio",
3736
"devtools_page": "devtools.html"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# <img src="images/icon.svg" height="60px"/> Network+
22

3-
## DevTools for network recording, modification and resending.
3+
## DevTools for network recording, editing and resending.
44

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

0 commit comments

Comments
 (0)