abuseipdb-client 0.1.57 → 0.1.59

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/dist/index.js +11 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -37,6 +37,10 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
37
37
 
38
38
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
39
39
 
40
+ function getDefaultExportFromCjs (x) {
41
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
42
+ }
43
+
40
44
  /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
41
45
 
42
46
  if (!globalThis.DOMException) {
@@ -54,11 +58,9 @@ if (!globalThis.DOMException) {
54
58
 
55
59
  var nodeDomexception = globalThis.DOMException;
56
60
 
57
- var ponyfill_es2018Exports = {};
58
- var ponyfill_es2018 = {
59
- get exports(){ return ponyfill_es2018Exports; },
60
- set exports(v){ ponyfill_es2018Exports = v; },
61
- };
61
+ var DOMException$1 = /*@__PURE__*/getDefaultExportFromCjs(nodeDomexception);
62
+
63
+ var ponyfill_es2018 = {exports: {}};
62
64
 
63
65
  /**
64
66
  * web-streams-polyfill v3.2.1
@@ -67,7 +69,7 @@ var ponyfill_es2018 = {
67
69
  var hasRequiredPonyfill_es2018;
68
70
 
69
71
  function requirePonyfill_es2018 () {
70
- if (hasRequiredPonyfill_es2018) return ponyfill_es2018Exports;
72
+ if (hasRequiredPonyfill_es2018) return ponyfill_es2018.exports;
71
73
  hasRequiredPonyfill_es2018 = 1;
72
74
  (function (module, exports) {
73
75
  (function (global, factory) {
@@ -4277,8 +4279,8 @@ function requirePonyfill_es2018 () {
4277
4279
 
4278
4280
  })));
4279
4281
 
4280
- } (ponyfill_es2018, ponyfill_es2018Exports));
4281
- return ponyfill_es2018Exports;
4282
+ } (ponyfill_es2018, ponyfill_es2018.exports));
4283
+ return ponyfill_es2018.exports;
4282
4284
  }
4283
4285
 
4284
4286
  /* c8 ignore start */
@@ -4675,7 +4677,7 @@ class BlobDataItem {
4675
4677
  async * stream () {
4676
4678
  const { mtimeMs } = await stat(this.#path);
4677
4679
  if (mtimeMs > this.lastModified) {
4678
- throw new nodeDomexception('The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.', 'NotReadableError')
4680
+ throw new DOMException$1('The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.', 'NotReadableError')
4679
4681
  }
4680
4682
  yield * node_fs.createReadStream(this.#path, {
4681
4683
  start: this.#start,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abuseipdb-client",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "private": false,
5
5
  "description": "AbuseIPDB Node.js API client.",
6
6
  "author": "Arthur Melo <contact@arthurmelo.com>",
@@ -73,7 +73,7 @@
73
73
  "jest-fetch-mock": "^3.0.3",
74
74
  "lint-staged": "^13.1.0",
75
75
  "prettier": "^2.8.1",
76
- "rimraf": "^4.0.4",
76
+ "rimraf": "^5.0.0",
77
77
  "rollup": "^3.7.5",
78
78
  "rollup-plugin-bundle-size": "^1.0.3",
79
79
  "rollup-plugin-dts": "^5.0.0",