Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
feat: clean repo and bundle size reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored and Pedro Teixeira committed Jan 9, 2019
1 parent b89f0ff commit 350103f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 125 deletions.
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

29 changes: 0 additions & 29 deletions appveyor.yml

This file was deleted.

15 changes: 0 additions & 15 deletions circle.yml

This file was deleted.

33 changes: 15 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,36 @@
"release-minor": "aegir release --type minor",
"release-major": "aegir release --type major",
"coverage": "aegir coverage",
"coverage-publish": "aegir coverage --provider coveralls"
},
"repository": {
"type": "git",
"url": "https://github.com/libp2p/js-peer-info.git"
"coverage-publish": "aegir coverage --provider coveralls",
"size": "bundlesize -f dist/index.min.js -s 212kB"
},
"files": [
"src",
"dist"
],
"repository": "github:libp2p/js-peer-info",
"keywords": [
"IPFS"
],
"engines": {
"node": ">=6.0.0",
"npm": ">=3.0.0"
"node": ">=10.0.0",
"npm": ">=6.0.0"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/libp2p/js-peer-info/issues"
},
"bugs": "https://github.com/libp2p/js-peer-info/issues",
"homepage": "https://github.com/libp2p/js-peer-info",
"pre-push": [
"lint",
"test"
],
"devDependencies": {
"aegir": "^17.1.1",
"aegir": "ipfs/aegir#fix/babel",
"buffer-loader": "0.1.0",
"bundlesize": "~0.17.0",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1"
},
"dependencies": {
"multiaddr": "^5.0.2",
"mafmt": "^6.0.2",
"lodash.uniqby": "^4.7.0",
"peer-id": "~0.12.0"
"multiaddr": "multiformats/js-multiaddr#feat/bundle-size",
"peer-id": "libp2p/js-peer-id#feat/bundle-size",
"unique-by": "^1.0.0"
},
"contributors": [
"Arnaud <arnaud.valensi@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const PeerId = require('peer-id')
const ensureMultiaddr = require('./utils').ensureMultiaddr
const { ensureMultiaddr } = require('./utils')
const MultiaddrSet = require('./multiaddr-set')
const assert = require('assert')

Expand Down
4 changes: 2 additions & 2 deletions src/multiaddr-set.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const ensureMultiaddr = require('./utils').ensureMultiaddr
const uniqBy = require('lodash.uniqby')
const { ensureMultiaddr } = require('./utils')
const uniqBy = require('unique-by')

// Because JavaScript doesn't let you overload the compare in Set()..
class MultiaddrSet {
Expand Down

0 comments on commit 350103f

Please sign in to comment.