mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
Compare commits
15 Commits
v2.0.0-alp
...
snyk-fix-8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e3684d58ae | ||
|
|
62ac69f59c | ||
| 39f045cbe4 | |||
| 280018112b | |||
| 52a6627e6b | |||
| ff8b95ce45 | |||
| 2c5b64695c | |||
| 2d076d3bb9 | |||
| 293bcbe4b8 | |||
| 769c48b093 | |||
| a1879f45ad | |||
| daedd1a876 | |||
|
|
8abb3789a1 | ||
| f60a24d908 | |||
| fd3a2bc24f |
24
.github/workflows/publish.yml
vendored
Normal file
24
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Build and Deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
|
||||
run: yarn install
|
||||
- name: Deploy 🚀
|
||||
run: |
|
||||
git config --global user.email "morten@olsen.pro"
|
||||
git config --global user.name "Release action"
|
||||
yarn prerelease
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
node_modules
|
||||
/coverage
|
||||
/packages/lib/lib
|
||||
/.auth
|
||||
/.auth
|
||||
*.log
|
||||
|
||||
56
CHANGELOG.md
56
CHANGELOG.md
@@ -3,6 +3,62 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [2.0.0-alpha.17](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.16](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.16) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.15](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.15) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.14](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.14) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.13](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.13) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.12](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.11](https://github.com/morten-olsen/react-native-debug-console/compare/2.0.0-alpha.5...2.0.0-alpha.11) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.7](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2019-07-05)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# React Native Debug Console
|
||||
|
||||
[](https://codeclimate.com/github/morten-olsen/react-native-debug-console/maintainability)
|
||||
|
||||
... and yes I am aware that it is a boring name
|
||||
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
{
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"version": "2.0.0-alpha.7"
|
||||
"version": "2.0.0-alpha.17",
|
||||
"command": {
|
||||
"publish": {
|
||||
"conventionalCommits": true,
|
||||
"yes": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"demo:ios": "lerna run --scope=react-native-debug-console-demo --stream ios",
|
||||
"demo:web": "lerna run --scope=react-native-debug-console-demo --stream web",
|
||||
"test": "lerna run --stream test",
|
||||
"prerelease": "source .auth && lerna version prerelease --sign-git-tag -m \"chore(release): publish %s\" --conventional-commits --create-release github --force-publish"
|
||||
"prerelease": "lerna version prerelease --yes -m \"chore(release): publish %s\" --conventional-commits --create-release github --force-publish"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.5.0",
|
||||
|
||||
@@ -3,6 +3,62 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [2.0.0-alpha.17](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.16](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.16) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.15](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.15) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.14](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.14) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.13](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.13) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.12](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 2.0.0-alpha.11 (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.7](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2019-07-05)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console-demo
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-debug-console-demo",
|
||||
"version": "2.0.0-alpha.7",
|
||||
"version": "2.0.0-alpha.17",
|
||||
"main": "./Entry.js",
|
||||
"scripts": {
|
||||
"start": "expo start",
|
||||
@@ -11,11 +11,11 @@
|
||||
"postinstall": "expo-yarn-workspaces postinstall"
|
||||
},
|
||||
"dependencies": {
|
||||
"expo": "^33.0.0",
|
||||
"expo": "^49.0.0",
|
||||
"react": "16.8.3",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
|
||||
"react-native-debug-console": "^2.0.0-alpha.7",
|
||||
"react-native-debug-console": "^2.0.0-alpha.17",
|
||||
"react-native-web": "0.11.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -3,6 +3,62 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [2.0.0-alpha.17](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.16](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.11...v2.0.0-alpha.16) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.15](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.11...v2.0.0-alpha.15) (2021-04-09)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.14](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.11...v2.0.0-alpha.14) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.13](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.11...v2.0.0-alpha.13) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.12](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 2.0.0-alpha.11 (2020-10-19)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [2.0.0-alpha.7](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.6...v2.0.0-alpha.7) (2019-07-05)
|
||||
|
||||
**Note:** Version bump only for package react-native-debug-console
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-debug-console",
|
||||
"version": "2.0.0-alpha.7",
|
||||
"version": "2.0.0-alpha.17",
|
||||
"main": "lib/index.js",
|
||||
"react-native": "lib/native.js",
|
||||
"repository": {
|
||||
@@ -9,16 +9,16 @@
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"bundle": "babel --copy-files --extensions '.ts,.tsx,.js' -d lib src",
|
||||
"postpublish": "yarn run bundle"
|
||||
"prepublish": "yarn run bundle"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"react-native-json-tree": "^1.2.0",
|
||||
"styled-components": "^5.0.0-beta.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"prop-types": "^15.6.0",
|
||||
"react": "^16.8.3",
|
||||
"react-native": "^0.59.8"
|
||||
"react-native": "^0.59.8",
|
||||
"react-native-webview": "^6.9.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { Fragment, createRef } from 'react';
|
||||
import styled from 'styled-components/native';
|
||||
import JSONTree from 'react-native-json-tree';
|
||||
import JSONTree from '../../JSON';
|
||||
import {
|
||||
ScrollView
|
||||
} from 'react-native';
|
||||
|
||||
@@ -4,18 +4,16 @@ import {
|
||||
View,
|
||||
} from 'react-native';
|
||||
import styled from 'styled-components/native';
|
||||
import { WebView } from 'react-native-webview';
|
||||
import {
|
||||
Emphasis,
|
||||
Fixed,
|
||||
} from '../../base/text';
|
||||
import JSONTree from 'react-native-json-tree';
|
||||
import JSONTree from '../../JSON';
|
||||
import Cell from '../../base/Cell';
|
||||
import CellHeader from '../../base/CellHeader';
|
||||
import Tab from '../Tab';
|
||||
|
||||
const WebView = styled.WebView`
|
||||
`;
|
||||
|
||||
const theme = {
|
||||
scheme: 'bright',
|
||||
author: 'chris kempson (http://chriskempson.com)',
|
||||
|
||||
13
packages/lib/src/components/JSON/index.js
Normal file
13
packages/lib/src/components/JSON/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
Fixed,
|
||||
} from '../base/text';
|
||||
|
||||
const JSONTree = ({ data }) => (
|
||||
<Fixed>
|
||||
{ JSON.stringify(data, null, ' ') }
|
||||
</Fixed>
|
||||
);
|
||||
|
||||
export default JSONTree;
|
||||
|
||||
@@ -8,7 +8,7 @@ class Events {
|
||||
}
|
||||
|
||||
unlisten(fn) {
|
||||
this.listeners = this.listeners(l => l !== fn);
|
||||
this.listeners = this.listeners.filter(l => l !== fn);
|
||||
}
|
||||
|
||||
publish(type, data) {
|
||||
@@ -18,4 +18,4 @@ class Events {
|
||||
|
||||
const events = new Events();
|
||||
|
||||
export default events;
|
||||
export default events;
|
||||
|
||||
@@ -15221,9 +15221,9 @@ xtend@^4.0.0, xtend@~4.0.1:
|
||||
integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68=
|
||||
|
||||
y18n@^3.2.1:
|
||||
version "3.2.1"
|
||||
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
|
||||
integrity sha1-bRX7qITAhnnA136I53WegR4H+kE=
|
||||
version "3.2.2"
|
||||
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.2.tgz#85c901bd6470ce71fc4bb723ad209b70f7f28696"
|
||||
integrity sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==
|
||||
|
||||
"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0:
|
||||
version "4.0.0"
|
||||
|
||||
Reference in New Issue
Block a user