blind-peer-muxer 1.1.0 → 1.2.0

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.
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "blind-peer-muxer",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Protomux channel muxer for blind peers",
5
5
  "main": "index.js",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/holepunchto/blind-peer-muxer.git"
9
9
  },
10
+ "files": [
11
+ "index.js",
12
+ "spec/"
13
+ ],
10
14
  "scripts": {
11
15
  "format": "prettier --write .",
12
16
  "lint": "lunte && prettier --check ."
@@ -23,7 +27,7 @@
23
27
  "prettier-config-holepunch": "^2.0.0"
24
28
  },
25
29
  "dependencies": {
26
- "compact-encoding": "^2.18.0",
30
+ "compact-encoding": "^3.0.0",
27
31
  "hyperschema": "^1.19.0",
28
32
  "protomux": "^3.10.1"
29
33
  }
package/.gitattributes DELETED
@@ -1 +0,0 @@
1
- * text=auto eol=lf
@@ -1,27 +0,0 @@
1
- name: Build Status
2
- on:
3
- push:
4
- branches:
5
- - main
6
- pull_request:
7
- branches:
8
- - main
9
- jobs:
10
- build:
11
- if: ${{ !startsWith(github.ref, 'refs/tags/')}} # Already runs for the push of the commit, no need to run again for the tag
12
- strategy:
13
- matrix:
14
- node-version: [lts/*]
15
- os: [ubuntu-latest, macos-latest, windows-latest]
16
- runs-on: ${{ matrix.os }}
17
- steps:
18
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 https://github.com/actions/checkout/releases/tag/v4.1.1
19
- - name: Use Node.js ${{ matrix.node-version }}
20
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2 https://github.com/actions/setup-node/releases/tag/v3.8.2
21
- with:
22
- node-version: ${{ matrix.node-version }}
23
- - run: npm install
24
- - run: npm run lint
25
- # - run: npm test
26
- # - run: npm -g install bare
27
- # - run: npm run test:bare
package/.prettierrc DELETED
@@ -1 +0,0 @@
1
- "prettier-config-holepunch"
package/NOTICE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2025 Holepunch Inc
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
package/build.js DELETED
@@ -1,47 +0,0 @@
1
- const Hyperschema = require('hyperschema')
2
-
3
- const schema = Hyperschema.from('./spec/hyperschema', { versioned: false })
4
- const blind = schema.namespace('blind-peer')
5
-
6
- blind.register({
7
- name: 'core',
8
- compact: true,
9
- fields: [
10
- {
11
- name: 'key',
12
- type: 'fixed32',
13
- required: true
14
- },
15
- {
16
- name: 'length',
17
- type: 'uint',
18
- required: true
19
- }
20
- ]
21
- })
22
-
23
- blind.register({
24
- name: 'cores',
25
- fields: [
26
- {
27
- name: 'referrer',
28
- type: 'fixed32'
29
- },
30
- {
31
- name: 'priority',
32
- type: 'uint'
33
- },
34
- {
35
- name: 'announce',
36
- type: 'bool'
37
- },
38
- {
39
- name: 'cores',
40
- type: '@blind-peer/core',
41
- array: true,
42
- required: true
43
- }
44
- ]
45
- })
46
-
47
- Hyperschema.toDisk(schema)