@libp2p/utils 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/LICENSE +3 -1
  2. package/package.json +72 -57
package/LICENSE CHANGED
@@ -1,2 +1,4 @@
1
+ This project is dual licensed under MIT and Apache-2.0.
2
+
1
3
  MIT: https://www.opensource.org/licenses/mit
2
- Apache-2.0: https://www.apache.org/licenses/license-2.0
4
+ Apache-2.0: https://www.apache.org/licenses/license-2.0
package/package.json CHANGED
@@ -1,10 +1,44 @@
1
1
  {
2
2
  "name": "@libp2p/utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem",
5
- "leadMaintainer": "Vasco Santos <santos.vasco10@gmail.com>",
5
+ "homepage": "https://github.com/libp2p/js-libp2p-utils#readme",
6
+ "license": "Apache-2.0 OR MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/libp2p/js-libp2p-utils.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/libp2p/js-libp2p-utils/issues"
13
+ },
6
14
  "type": "module",
15
+ "types": "./dist/src/index.d.ts",
16
+ "typesVersions": {
17
+ "*": {
18
+ "*": [
19
+ "*",
20
+ "dist/*",
21
+ "dist/src/*",
22
+ "dist/src/*/index"
23
+ ],
24
+ "src/*": [
25
+ "*",
26
+ "dist/*",
27
+ "dist/src/*",
28
+ "dist/src/*/index"
29
+ ]
30
+ }
31
+ },
32
+ "files": [
33
+ "src",
34
+ "dist/src",
35
+ "!dist/test",
36
+ "!**/*.tsbuildinfo"
37
+ ],
7
38
  "exports": {
39
+ ".": {
40
+ "import": "./dist/src/index.js"
41
+ },
8
42
  "./multiaddr/is-loopback": {
9
43
  "import": "./dist/src/multiaddr/is-loopback.js",
10
44
  "types": "./dist/src/multiaddr/is-loopback.d.ts"
@@ -30,63 +64,12 @@
30
64
  "types": "./dist/src/stream-to-ma-connr.d.ts"
31
65
  }
32
66
  },
33
- "typesVersions": {
34
- "*": {
35
- "*": [
36
- "dist/src/*",
37
- "dist/src/*/index"
38
- ],
39
- "src/*": [
40
- "dist/src/*",
41
- "dist/src/*/index"
42
- ]
67
+ "eslintConfig": {
68
+ "extends": "ipfs",
69
+ "parserOptions": {
70
+ "sourceType": "module"
43
71
  }
44
72
  },
45
- "files": [
46
- "src",
47
- "dist/src"
48
- ],
49
- "scripts": {
50
- "lint": "aegir lint",
51
- "dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
52
- "build": "tsc",
53
- "pretest": "npm run build",
54
- "test": "aegir test -f ./dist/test/**/*.js",
55
- "test:chrome": "npm run test -- -t browser",
56
- "test:chrome-webworker": "npm run test -- -t webworker",
57
- "test:firefox": "npm run test -- -t browser -- --browser firefox",
58
- "test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
59
- "test:node": "npm run test -- -t node --cov",
60
- "test:electron-main": "npm run test -- -t electron-main",
61
- "release": "semantic-release"
62
- },
63
- "repository": {
64
- "type": "git",
65
- "url": "git+https://github.com/libp2p/js-libp2p-utils.git"
66
- },
67
- "license": "Apache-2.0 OR MIT",
68
- "bugs": {
69
- "url": "https://github.com/libp2p/js-libp2p-utils/issues"
70
- },
71
- "homepage": "https://github.com/libp2p/js-libp2p-utils#readme",
72
- "devDependencies": {
73
- "@libp2p/interfaces": "^0.2.0",
74
- "@types/debug": "^4.1.5",
75
- "aegir": "^36.1.2",
76
- "it-pair": "^1.0.0",
77
- "it-pipe": "^1.1.0",
78
- "streaming-iterables": "^6.0.0",
79
- "util": "^0.12.3"
80
- },
81
- "dependencies": {
82
- "@achingbrain/ip-address": "^8.1.0",
83
- "@multiformats/multiaddr": "^10.1.1",
84
- "abortable-iterator": "^3.0.0",
85
- "debug": "^4.3.0",
86
- "err-code": "^3.0.1",
87
- "is-loopback-addr": "^1.0.0",
88
- "private-ip": "^2.1.1"
89
- },
90
73
  "release": {
91
74
  "branches": [
92
75
  "master"
@@ -167,5 +150,37 @@
167
150
  "@semantic-release/github",
168
151
  "@semantic-release/git"
169
152
  ]
153
+ },
154
+ "scripts": {
155
+ "lint": "aegir lint",
156
+ "dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
157
+ "build": "tsc",
158
+ "pretest": "npm run build",
159
+ "test": "aegir test -f ./dist/test/**/*.js",
160
+ "test:chrome": "npm run test -- -t browser",
161
+ "test:chrome-webworker": "npm run test -- -t webworker",
162
+ "test:firefox": "npm run test -- -t browser -- --browser firefox",
163
+ "test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
164
+ "test:node": "npm run test -- -t node --cov",
165
+ "test:electron-main": "npm run test -- -t electron-main",
166
+ "release": "semantic-release"
167
+ },
168
+ "dependencies": {
169
+ "@achingbrain/ip-address": "^8.1.0",
170
+ "@multiformats/multiaddr": "^10.1.1",
171
+ "abortable-iterator": "^3.0.0",
172
+ "debug": "^4.3.0",
173
+ "err-code": "^3.0.1",
174
+ "is-loopback-addr": "^1.0.0",
175
+ "private-ip": "^2.1.1"
176
+ },
177
+ "devDependencies": {
178
+ "@libp2p/interfaces": "^0.2.0",
179
+ "@types/debug": "^4.1.5",
180
+ "aegir": "^36.1.2",
181
+ "it-pair": "^1.0.0",
182
+ "it-pipe": "^1.1.0",
183
+ "streaming-iterables": "^6.0.0",
184
+ "util": "^0.12.3"
170
185
  }
171
186
  }