Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Mar 25, 2020
1 parent 07353f9 commit 3968a98
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 96 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .jsdoc.conf

This file was deleted.

6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

62 changes: 35 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
sudo: false
language: node_js
cache: npm
stages:
- check
- test
- cov

matrix:
include:
- node_js: 8
env: CXX=g++-4.8
- node_js: 10
env:
- SAUCE=true
- CXX=g++-4.8
- node_js: stable
env: CXX=g++-4.8
node_js:
- '10'
- '12'

os:
- linux
- osx
- windows

script:
- yarn lint
- yarn test
- yarn coverage
script: npx nyc -s npm run test:node -- --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

jobs:
include:
- stage: check
script:
- npx aegir commitlint --travis
- npx aegir dep-check
- npm run lint

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- stage: test
name: chrome
addons:
chrome: stable
script: npx aegir test -t browser -t webworker

after_success:
- yarn coverage-publish
- stage: test
name: firefox
addons:
firefox: latest
script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless

addons:
firefox: 'latest'
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
notifications:
email: false
21 changes: 0 additions & 21 deletions .waiting.html

This file was deleted.

12 changes: 0 additions & 12 deletions circle.yml

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"browser": {
"fs": false
},
"files": [
"src",
"dist"
],
"scripts": {
"test": "aegir test --files test/**/*.spec.js",
"test:browser": "aegir test --target browser",
Expand Down
15 changes: 9 additions & 6 deletions src/commented.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
'use strict'

const { Buffer } = require('buffer')
Expand All @@ -6,9 +7,11 @@ const Decoder = require('./decoder')
const constants = require('./constants')
const bignumber = require('bignumber.js').BigNumber

const MT = constants.MT,
NUMBYTES = constants.NUMBYTES,
SYMS = constants.SYMS
const MT = constants.MT

const NUMBYTES = constants.NUMBYTES

const SYMS = constants.SYMS

function plural (c) {
if (c > 1) {
Expand Down Expand Up @@ -40,7 +43,7 @@ class Commented extends stream.Transform {

this.depth = 1
this.max_depth = max_depth
this.all = new NoFilter
this.all = new NoFilter()
this.parser = new Decoder(options)
this.parser.on('value', this._on_value.bind(this))
this.parser.on('start', this._on_start.bind(this))
Expand Down Expand Up @@ -112,7 +115,7 @@ class Commented extends stream.Transform {
default:
throw new Error('Unknown option type')
}
const bs = new NoFilter
const bs = new NoFilter()
const d = new Commented({
max_depth: max_depth
})
Expand Down Expand Up @@ -292,7 +295,7 @@ class Commented extends stream.Transform {
this.push('undefined\n')
} else if (typeof val === 'string') {
this.depth--
if (val.length > 0 ) {
if (val.length > 0) {
this.push(JSON.stringify(val))
this.push('\n')
}
Expand Down
2 changes: 2 additions & 0 deletions src/decoder.asm.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable */

module.exports = function decodeAsm (stdlib, foreign, buffer) {
'use asm'

Expand Down

0 comments on commit 3968a98

Please sign in to comment.