Compare commits

..

11 Commits

Author SHA1 Message Date
snyk-bot
fb89569c57 fix: packages/demo/package.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-REACTNATIVEWEBVIEW-1011954
2020-11-25 21:11:54 +00:00
ff8b95ce45 removed-signing 2020-10-19 11:19:52 +02:00
2c5b64695c update 2020-10-19 11:16:16 +02:00
2d076d3bb9 chore(release): publish v2.0.0-alpha.14 2020-10-19 11:09:12 +02:00
293bcbe4b8 publish 2020-10-19 11:03:27 +02:00
769c48b093 update 2020-10-19 10:58:35 +02:00
a1879f45ad Publish 2020-10-19 10:55:31 +02:00
daedd1a876 chore(release): publish v2.0.0-alpha.11 2020-10-19 10:39:40 +02:00
denissb
8abb3789a1 Fix unlisten in events.js (#7) 2020-10-19 10:36:08 +02:00
f60a24d908 Update README.md 2019-08-23 00:21:37 +02:00
fd3a2bc24f V2 (#1) 2019-08-23 00:12:49 +02:00
15 changed files with 242 additions and 15 deletions

24
.github/workflows/publish.yml vendored Normal file
View 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 }}

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
node_modules
/coverage
/packages/lib/lib
/.auth
*.log

View File

@@ -3,6 +3,70 @@
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.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
# [2.0.0-alpha.6](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console
# [2.0.0-alpha.5](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console
# [2.0.0-alpha.4](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console
# [2.0.0-alpha.3](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console

View File

@@ -1,5 +1,7 @@
# React Native Debug Console
[![Maintainability](https://api.codeclimate.com/v1/badges/649636926c23c40f2404/maintainability)](https://codeclimate.com/github/morten-olsen/react-native-debug-console/maintainability)
... and yes I am aware that it is a boring name
React Native Debug Console is an easy to use network and console debug component and modal for react native, written purely in JavaScript

View File

@@ -1,5 +1,11 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "2.0.0-alpha.3"
"version": "2.0.0-alpha.14",
"command": {
"publish": {
"conventionalCommits": true,
"yes": true
}
}
}

View File

@@ -7,7 +7,8 @@
"postinstall": "lerna bootstrap",
"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"
"test": "lerna run --stream test",
"prerelease": "lerna version prerelease --yes -m \"chore(release): publish %s\" --conventional-commits --create-release github --force-publish"
},
"devDependencies": {
"@babel/cli": "^7.5.0",

View File

@@ -3,6 +3,70 @@
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.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
# [2.0.0-alpha.6](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console-demo
# [2.0.0-alpha.5](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console-demo
# [2.0.0-alpha.4](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console-demo
# [2.0.0-alpha.3](https://github.com/morten-olsen/react-native-debug-console/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console-demo

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-debug-console-demo",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.14",
"main": "./Entry.js",
"scripts": {
"start": "expo start",
@@ -11,11 +11,11 @@
"postinstall": "expo-yarn-workspaces postinstall"
},
"dependencies": {
"expo": "^33.0.0",
"expo": "^34.0.1",
"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.3",
"react-native-debug-console": "^2.0.0-alpha.14",
"react-native-web": "0.11.4"
},
"devDependencies": {

1
packages/lib/.npmrc Normal file
View File

@@ -0,0 +1 @@
@morten-olsen:registry=https://npm.pkg.github.com/

View File

@@ -3,6 +3,70 @@
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.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
# [2.0.0-alpha.6](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.5...v2.0.0-alpha.6) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console
# [2.0.0-alpha.5](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.4...v2.0.0-alpha.5) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console
# [2.0.0-alpha.4](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console
# [2.0.0-alpha.3](https://github.com/morten-olsen/react-native-debugger/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2019-07-05)
**Note:** Version bump only for package react-native-debug-console

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-debug-console",
"version": "2.0.0-alpha.3",
"version": "2.0.0-alpha.14",
"main": "lib/index.js",
"react-native": "lib/native.js",
"repository": {
@@ -8,8 +8,8 @@
},
"scripts": {
"test": "jest",
"bundle": "babel --extensions '.ts,.tsx,.js' -d lib src",
"postpublish": "yarn run bundle"
"bundle": "babel --copy-files --extensions '.ts,.tsx,.js' -d lib src",
"prepublish": "yarn run bundle"
},
"license": "MIT",
"dependencies": {
@@ -19,6 +19,7 @@
"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"
}
}

View File

@@ -4,6 +4,7 @@ import {
View,
} from 'react-native';
import styled from 'styled-components/native';
import { WebView } from 'react-native-webview';
import {
Emphasis,
Fixed,
@@ -13,9 +14,6 @@ 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)',

View File

@@ -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) {