New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

screenshotone-api-sdk

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screenshotone-api-sdk - npm Package Compare versions

Comparing version

to
1.0.11

19

dist/main.js

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -46,5 +47,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import * as crypto from 'crypto';
import Big from 'big.js';
import fetch from 'node-fetch';
Object.defineProperty(exports, "__esModule", { value: true });
exports.TakeOptions = exports.Client = void 0;
var crypto = require("crypto");
var big_js_1 = require("big.js");
var node_fetch_1 = require("node-fetch");
/**

@@ -77,3 +80,3 @@ * Represents an API client for the screenshotone.com API.

url = this.generateTakeURL(options);
return [4 /*yield*/, fetch(url)];
return [4 /*yield*/, (0, node_fetch_1.default)(url)];
case 1:

@@ -91,3 +94,3 @@ response = _a.sent();

}());
export { Client };
exports.Client = Client;
/**

@@ -174,3 +177,3 @@ * Represents options for taking screenshots.

TakeOptions.prototype.geolocationLatitude = function (latitude) {
this.put("geolocation_latitude", new Big(latitude).toFixed(20).replace(/0+$/, ""));
this.put("geolocation_latitude", new big_js_1.default(latitude).toFixed(20).replace(/0+$/, ""));
return this;

@@ -182,3 +185,3 @@ };

TakeOptions.prototype.geolocationLongitude = function (longitude) {
this.put("geolocation_longitude", new Big(longitude).toFixed(20).replace(/0+$/, ""));
this.put("geolocation_longitude", new big_js_1.default(longitude).toFixed(20).replace(/0+$/, ""));
return this;

@@ -316,3 +319,3 @@ };

}());
export { TakeOptions };
exports.TakeOptions = TakeOptions;
//# sourceMappingURL=main.js.map
{
"name": "screenshotone-api-sdk",
"homepage": "https://screenshotone.com",
"version": "1.0.10",
"version": "1.0.11",
"description": "Use ScreenshotOne.com API to generate screenshots of any website.",

@@ -6,0 +6,0 @@ "repository": {

{
"compilerOptions": {
"module": "es2015",
"moduleResolution": "node",
"esModuleInterop": true,
"outDir": "./dist",
"strict": true,
"noImplicitAny": true,
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
"declaration": true,
"declarationDir": "dist/@types",
"declaration": true,
"strictNullChecks": true,
"target": "es5",
"outDir": "dist",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"lib": [
"es2015",
"dom"
],
"rootDir": "src"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"dist"
]
}