| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,6 @@ overrides: | |||
| 74 | 74 | - files: | |
| 75 | 75 | - es-module/*.js | |
| 76 | 76 | - es-module/*.mjs | |
| 77 | - - internet/*.js | ||
| 78 | 77 | - js-native-api/*/*.js | |
| 79 | 78 | - known_issues/*.js | |
| 80 | 79 | - parallel/*.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,13 +25,13 @@ const corepackYarnPath = path.join( | |||
| 25 | 25 | 'deps', | |
| 26 | 26 | 'corepack', | |
| 27 | 27 | 'dist', | |
| 28 | - 'yarn.js' | ||
| 28 | + 'yarn.js', | ||
| 29 | 29 | ); | |
| 30 | 30 | ||
| 31 | 31 | const pkgContent = JSON.stringify({ | |
| 32 | 32 | dependencies: { | |
| 33 | - 'package-name': fixtures.path('packages/main') | ||
| 34 | - } | ||
| 33 | + 'package-name': fixtures.path('packages/main'), | ||
| 34 | + }, | ||
| 35 | 35 | }); | |
| 36 | 36 | ||
| 37 | 37 | const pkgPath = path.join(installDir, 'package.json'); | |
@@ -46,7 +46,7 @@ const env = { ...process.env, | |||
| 46 | 46 | ||
| 47 | 47 | exec(`${process.execPath} ${corepackYarnPath} install`, { | |
| 48 | 48 | cwd: installDir, | |
| 49 | - env: env | ||
| 49 | + env: env, | ||
| 50 | 50 | }, common.mustCall(handleExit)); | |
| 51 | 51 | ||
| 52 | 52 | function handleExit(error, stdout, stderr) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,7 +166,7 @@ if (process.argv[2] !== 'child') { | |||
| 166 | 166 | ||
| 167 | 167 | const sendSocket = dgram.createSocket({ | |
| 168 | 168 | type: 'udp4', | |
| 169 | - reuseAddr: true | ||
| 169 | + reuseAddr: true, | ||
| 170 | 170 | }); | |
| 171 | 171 | ||
| 172 | 172 | // Bind the address explicitly for sending | |
@@ -203,7 +203,7 @@ if (process.argv[2] !== 'child') { | |||
| 203 | 203 | LOCAL_BROADCAST_HOST, common.PORT); | |
| 204 | 204 | ||
| 205 | 205 | process.nextTick(sendSocket.sendNext); | |
| 206 | - } | ||
| 206 | + }, | ||
| 207 | 207 | ); | |
| 208 | 208 | }; | |
| 209 | 209 | ||
@@ -219,7 +219,7 @@ if (process.argv[2] === 'child') { | |||
| 219 | 219 | const receivedMessages = []; | |
| 220 | 220 | const listenSocket = dgram.createSocket({ | |
| 221 | 221 | type: 'udp4', | |
| 222 | - reuseAddr: true | ||
| 222 | + reuseAddr: true, | ||
| 223 | 223 | }); | |
| 224 | 224 | ||
| 225 | 225 | listenSocket.on('message', (buf, rinfo) => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ const setup = dgram.createSocket.bind(dgram, { type: 'udp4', reuseAddr: true }); | |||
| 19 | 19 | const socket = setup(); | |
| 20 | 20 | assert.throws( | |
| 21 | 21 | () => { socket.dropMembership(multicastAddress); }, | |
| 22 | - /^Error: dropMembership EADDRNOTAVAIL$/ | ||
| 22 | + /^Error: dropMembership EADDRNOTAVAIL$/, | ||
| 23 | 23 | ); | |
| 24 | 24 | socket.close(); | |
| 25 | 25 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -188,7 +188,7 @@ if (process.argv[2] !== 'child') { | |||
| 188 | 188 | buf.toString(), | |
| 189 | 189 | LOCAL_BROADCAST_HOST, common.PORT); | |
| 190 | 190 | process.nextTick(sendSocket.sendNext); | |
| 191 | - } | ||
| 191 | + }, | ||
| 192 | 192 | ); | |
| 193 | 193 | }; | |
| 194 | 194 | } | |
@@ -197,7 +197,7 @@ if (process.argv[2] === 'child') { | |||
| 197 | 197 | const receivedMessages = []; | |
| 198 | 198 | const listenSocket = dgram.createSocket({ | |
| 199 | 199 | type: 'udp4', | |
| 200 | - reuseAddr: true | ||
| 200 | + reuseAddr: true, | ||
| 201 | 201 | }); | |
| 202 | 202 | ||
| 203 | 203 | listenSocket.on('listening', function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ const networkInterfaces = require('os').networkInterfaces(); | |||
| 25 | 25 | const fork = require('child_process').fork; | |
| 26 | 26 | const MULTICASTS = { | |
| 27 | 27 | IPv4: ['224.0.0.115', '224.0.0.116', '224.0.0.117'], | |
| 28 | - IPv6: ['ff02::1:115', 'ff02::1:116', 'ff02::1:117'] | ||
| 28 | + IPv6: ['ff02::1:115', 'ff02::1:116', 'ff02::1:117'], | ||
| 29 | 29 | }; | |
| 30 | 30 | const LOOPBACK = { IPv4: '127.0.0.1', IPv6: '::1' }; | |
| 31 | 31 | const ANY = { IPv4: '0.0.0.0', IPv6: '::' }; | |
@@ -201,7 +201,7 @@ if (process.argv[2] !== 'child') { | |||
| 201 | 201 | ||
| 202 | 202 | const sendSocket = dgram.createSocket({ | |
| 203 | 203 | type: UDP[FAM], | |
| 204 | - reuseAddr: true | ||
| 204 | + reuseAddr: true, | ||
| 205 | 205 | }); | |
| 206 | 206 | ||
| 207 | 207 | // Don't bind the address explicitly when sending and start with | |
@@ -241,7 +241,7 @@ if (process.argv[2] !== 'child') { | |||
| 241 | 241 | msg.mcast, PORTS[msg.mcast]); | |
| 242 | 242 | ||
| 243 | 243 | process.nextTick(sendSocket.sendNext); | |
| 244 | - } | ||
| 244 | + }, | ||
| 245 | 245 | ); | |
| 246 | 246 | }; | |
| 247 | 247 | } | |
@@ -256,7 +256,7 @@ if (process.argv[2] === 'child') { | |||
| 256 | 256 | console.error(`pid ${process.pid} iface ${IFACE} MULTICAST ${MULTICAST}`); | |
| 257 | 257 | const listenSocket = dgram.createSocket({ | |
| 258 | 258 | type: UDP[FAM], | |
| 259 | - reuseAddr: true | ||
| 259 | + reuseAddr: true, | ||
| 260 | 260 | }); | |
| 261 | 261 | ||
| 262 | 262 | listenSocket.on('message', (buf, rinfo) => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,7 +182,7 @@ if (process.argv[2] !== 'child') { | |||
| 182 | 182 | buf.toString(), | |
| 183 | 183 | GROUP_ADDRESS, common.PORT); | |
| 184 | 184 | process.nextTick(sendSocket.sendNext); | |
| 185 | - } | ||
| 185 | + }, | ||
| 186 | 186 | ); | |
| 187 | 187 | }; | |
| 188 | 188 | } | |
@@ -191,7 +191,7 @@ if (process.argv[2] === 'child') { | |||
| 191 | 191 | const receivedMessages = []; | |
| 192 | 192 | const listenSocket = dgram.createSocket({ | |
| 193 | 193 | type: 'udp4', | |
| 194 | - reuseAddr: true | ||
| 194 | + reuseAddr: true, | ||
| 195 | 195 | }); | |
| 196 | 196 | ||
| 197 | 197 | listenSocket.on('listening', function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -182,7 +182,7 @@ if (process.argv[2] !== 'child') { | |||
| 182 | 182 | buf.toString(), | |
| 183 | 183 | GROUP_ADDRESS, common.PORT); | |
| 184 | 184 | process.nextTick(sendSocket.sendNext); | |
| 185 | - } | ||
| 185 | + }, | ||
| 186 | 186 | ); | |
| 187 | 187 | }; | |
| 188 | 188 | } | |
@@ -191,7 +191,7 @@ if (process.argv[2] === 'child') { | |||
| 191 | 191 | const receivedMessages = []; | |
| 192 | 192 | const listenSocket = dgram.createSocket({ | |
| 193 | 193 | type: 'udp6', | |
| 194 | - reuseAddr: true | ||
| 194 | + reuseAddr: true, | ||
| 195 | 195 | }); | |
| 196 | 196 | ||
| 197 | 197 | listenSocket.on('listening', function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,7 +78,7 @@ const checkers = { | |||
| 78 | 78 | assert.strictEqual(typeof r.priority, 'number'); | |
| 79 | 79 | assert.strictEqual(typeof r.weight, 'number'); | |
| 80 | 80 | assert.strictEqual(r.type, 'SRV'); | |
| 81 | - } | ||
| 81 | + }, | ||
| 82 | 82 | }; | |
| 83 | 83 | ||
| 84 | 84 | function TEST(f) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,7 @@ dns.lookup( | |||
| 34 | 34 | } | |
| 35 | 35 | assert.ifError(err); | |
| 36 | 36 | assert.strictEqual(address, fixture.expectedAddress); | |
| 37 | - }) | ||
| 37 | + }), | ||
| 38 | 38 | ); | |
| 39 | 39 | ||
| 40 | 40 | dns.promises.lookup(fixture.hostname, { family: fixture.family }) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments