Socket
Socket
Sign inDemoInstall

@aptos-labs/aptos-client

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptos-labs/aptos-client - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

dist/browser/index.browser.d.mts

4

dist/browser/index.browser.d.ts

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

declare type AptosClientResponse<Res> = {
type AptosClientResponse<Res> = {
status: number;

@@ -10,3 +10,3 @@ statusText: string;

};
declare type AptosClientRequest = {
type AptosClientRequest = {
url: string;

@@ -13,0 +13,0 @@ method: "GET" | "POST";

@@ -21,2 +21,6 @@ "use strict";

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -62,4 +66,2 @@ mod

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
//# sourceMappingURL=index.browser.js.map

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

declare type AptosClientResponse<Res> = {
type AptosClientResponse<Res> = {
status: number;

@@ -10,3 +10,3 @@ statusText: string;

};
declare type AptosClientRequest = {
type AptosClientRequest = {
url: string;

@@ -13,0 +13,0 @@ method: "GET" | "POST";

@@ -21,2 +21,6 @@ "use strict";

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -36,3 +40,3 @@ mod

// src/cookieJar.ts
var CookieJar = class {
var CookieJar = class _CookieJar {
constructor(jar = /* @__PURE__ */ new Map()) {

@@ -47,3 +51,3 @@ this.jar = jar;

}
const cookie = CookieJar.parse(cookieStr);
const cookie = _CookieJar.parse(cookieStr);
this.jar.set(key, [...((_a = this.jar.get(key)) == null ? void 0 : _a.filter((c) => c.name !== cookie.name)) || [], cookie]);

@@ -57,3 +61,3 @@ }

}
return ((_a = this.jar.get(key)) == null ? void 0 : _a.filter((cookie) => !cookie.expires || cookie.expires > new Date())) || [];
return ((_a = this.jar.get(key)) == null ? void 0 : _a.filter((cookie) => !cookie.expires || cookie.expires > /* @__PURE__ */ new Date())) || [];
}

@@ -181,4 +185,2 @@ static parse(str) {

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
//# sourceMappingURL=index.node.js.map

@@ -11,3 +11,3 @@ "use strict";

};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CookieJar = void 0;

@@ -50,3 +50,3 @@ var CookieJar = /** @class */ (function () {

name: name_1,
value: value
value: value,
};

@@ -53,0 +53,0 @@ }

@@ -17,3 +17,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -39,3 +39,3 @@ if (y = 0, t) op = [op[0] & 2, t.value];

};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var got_1 = require("got");

@@ -77,4 +77,4 @@ var cookieJar_1 = require("./cookieJar");

},
]
}
],
},
};

@@ -92,3 +92,3 @@ if (body) {

_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, (0, got_1["default"])(request)];
return [4 /*yield*/, (0, got_1.default)(request)];
case 2:

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

}
exports["default"] = aptosClient;
exports.default = aptosClient;
function parseResponse(response) {

@@ -119,3 +119,3 @@ return {

response: response,
headers: response.headers
headers: response.headers,
};

@@ -122,0 +122,0 @@ }

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

export declare type AptosClientResponse<Res> = {
export type AptosClientResponse<Res> = {
status: number;

@@ -10,3 +10,3 @@ statusText: string;

};
export declare type AptosClientRequest = {
export type AptosClientRequest = {
url: string;

@@ -13,0 +13,0 @@ method: "GET" | "POST";

"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -39,3 +39,3 @@ {

"fmt": "pnpm _fmt --write",
"_fmt": "prettier 'src/**/*.ts' '.eslintrc.js'"
"_fmt": "prettier 'src/**/*.ts' '.eslintrc.js' '*.md'"
},

@@ -57,20 +57,21 @@ "repository": {

"dependencies": {
"axios": "0.27.2",
"got": "^11.0.0"
"axios": "1.6.2",
"got": "^11.8.6"
},
"devDependencies": {
"@types/node": "18.6.2",
"ts-node": "10.9.1",
"tsup": "6.2.3",
"typescript": "4.8.2",
"eslint": "8.23.0",
"prettier": "2.6.2",
"eslint-config-prettier": "8.5.0",
"@types/node": "20.10.4",
"@typescript-eslint/eslint-plugin": "6.13.2",
"@typescript-eslint/parser": "6.13.2",
"eslint": "8.55.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-plugin-import": "2.26.0",
"@typescript-eslint/eslint-plugin": "5.36.2",
"@typescript-eslint/parser": "5.36.2"
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-plugin-import": "2.29.0",
"prettier": "3.1.0",
"semver": "6.3.1",
"ts-node": "10.9.2",
"tsup": "8.0.1",
"typescript": "5.3.3"
},
"version": "0.0.2"
"version": "0.1.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc