Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully qualified import modifiers #67

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- run: npm -v
- run: npm i
- run: npm test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ No nonsense [protocol buffers](https://developers.google.com/protocol-buffers) s
npm install protocol-buffers-schema
```

[![build status](http://img.shields.io/travis/mafintosh/protocol-buffers-schema.svg?style=flat)](http://travis-ci.org/mafintosh/protocol-buffers-schema)
[![build status](https://github.com/mafintosh/protocol-buffers-schema/actions/workflows/test.yml/badge.svg)](https://github.com/mafintosh/protocol-buffers-schema/workflows/test.yml)

## Usage

Expand Down
6 changes: 3 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var schema = require('./')
var fs = require('fs')
const schema = require('./')
const fs = require('fs')

var sch = schema.parse(fs.readFileSync('example.proto'))
const sch = schema.parse(fs.readFileSync('example.proto'))

console.log('Parsed schema:')
console.log(JSON.stringify(sch, null, 2))
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var parse = require('./parse')
var stringify = require('./stringify')
const parse = require('./parse')
const stringify = require('./stringify')

module.exports = parse
module.exports.parse = parse
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "No nonsense protocol buffers schema parser written in Javascript",
"main": "index.js",
"devDependencies": {
"standard": "^10.0.3",
"tape": "^4.8.0"
"standard": "^16.0.4",
"tape": "^5.5.2"
},
"scripts": {
"test": "standard && tape test/*.js"
Expand Down
Loading