@ffflorian/mock-udp 1.4.3 → 1.4.5

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/dist/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Socket } from 'node:dgram';
1
+ import { Socket } from 'dgram';
2
2
  let intercepts = {};
3
3
  const originalSocketSend = Socket.prototype.send;
4
4
  class Scope {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-magic-numbers */
2
2
  import { assert, expect, describe, test, beforeEach } from 'vitest';
3
- import * as dgram from 'node:dgram';
3
+ import * as dgram from 'dgram';
4
4
  import * as mockudp from './index.js';
5
5
  const buffer = Buffer.from('hello world');
6
6
  describe('mock-udp.intercept', () => {
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Socket } from 'node:dgram';
1
+ import { Socket } from 'dgram';
2
2
  let intercepts = {};
3
3
  const originalSocketSend = Socket.prototype.send;
4
4
  class Scope {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-magic-numbers */
2
2
  import { assert, expect, describe, test, beforeEach } from 'vitest';
3
- import * as dgram from 'node:dgram';
3
+ import * as dgram from 'dgram';
4
4
  import * as mockudp from './index.js';
5
5
  const buffer = Buffer.from('hello world');
6
6
  describe('mock-udp.intercept', () => {
package/package.json CHANGED
@@ -33,6 +33,6 @@
33
33
  "test": "vitest run"
34
34
  },
35
35
  "type": "module",
36
- "version": "1.4.3",
37
- "gitHead": "08a3d819af6c24e44e0bc84380bb4fe9da3f7bbc"
36
+ "version": "1.4.5",
37
+ "gitHead": "82888f0b00cccbce10922db5811575bf5dbbe253"
38
38
  }