screenshotone-api-sdk 1.0.12 → 1.0.13

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/main.js CHANGED
@@ -48,7 +48,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.TakeOptions = exports.Client = void 0;
49
49
  var crypto = require("crypto");
50
50
  var big_js_1 = require("big.js");
51
- var node_fetch_1 = require("node-fetch");
51
+ var cross_fetch_1 = require("cross-fetch");
52
52
  /**
53
53
  * Represents an API client for the screenshotone.com API.
54
54
  */
@@ -76,7 +76,7 @@ var Client = /** @class */ (function () {
76
76
  switch (_a.label) {
77
77
  case 0:
78
78
  url = this.generateTakeURL(options);
79
- return [4 /*yield*/, (0, node_fetch_1.default)(url)];
79
+ return [4 /*yield*/, (0, cross_fetch_1.default)(url)];
80
80
  case 1:
81
81
  response = _a.sent();
82
82
  if (!response.ok) return [3 /*break*/, 3];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "screenshotone-api-sdk",
3
3
  "homepage": "https://screenshotone.com",
4
- "version": "1.0.12",
4
+ "version": "1.0.13",
5
5
  "description": "Use ScreenshotOne.com API to generate screenshots of any website.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "render"
23
23
  ],
24
24
  "author": "Dmytro Krasun",
25
- "license": "MIT",
25
+ "license": "MIT",
26
26
  "bugs": {
27
27
  "email": "support@screenshotone.com",
28
28
  "url": "https://github.com/screenshotone/tssdk/issues"
@@ -31,16 +31,16 @@
31
31
  "types": "dist/@types/main.d.ts",
32
32
  "typings": "dist/@types/main.d.ts",
33
33
  "devDependencies": {
34
- "typescript": "^4.7.3",
34
+ "@types/big.js": "^6.1.3",
35
35
  "@types/node": "^17.0.40",
36
- "@types/big.js": "^6.1.3"
36
+ "typescript": "^4.7.3"
37
37
  },
38
38
  "dependencies": {
39
39
  "big.js": "^6.2.0",
40
- "node-fetch": "^3.2.5"
40
+ "cross-fetch": "^3.1.5"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc",
44
44
  "prepare": "npm run build"
45
45
  }
46
- }
46
+ }
package/src/main.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as crypto from 'crypto';
2
2
  import Big from 'big.js';
3
- import fetch from 'node-fetch';
3
+ import fetch from 'cross-fetch';
4
4
 
5
5
  /**
6
6
  * Represents an API client for the screenshotone.com API.