Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aspida

Package Overview
Dependencies
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspida - npm Package Compare versions

Comparing version 1.13.3 to 1.14.0

dist/cjs/createHash.d.ts

6

dist/cjs/createTemplateValues.js

@@ -7,2 +7,3 @@ "use strict";

const createDocComment_1 = __importDefault(require("./createDocComment"));
const createHash_1 = require("./createHash");
const createMethodsString_1 = __importDefault(require("./createMethodsString"));

@@ -18,4 +19,5 @@ const valNameRegExpStr = '^_[a-zA-Z][a-zA-Z0-9_]*';

const getMethodsString = (filepath, methods, indent, newPrefix, newUrl) => {
const importName = `Methods${imports.length}`;
imports.push(`import type { Methods as ${importName} } from '${filepath.replace(/'/g, "\\'")}';`);
const path = filepath.replace(/'/g, "\\'");
const importName = `Methods_${(0, createHash_1.createHash)(path)}`;
imports.push(`import type { Methods as ${importName} } from '${path}';`);
let newPath = `'${decodeURIComponent(newUrl)}${trailingSlash ? '/' : ''}'`;

@@ -22,0 +24,0 @@ if (newPath.length > 2) {

import createDocComment from './createDocComment';
import { createHash } from './createHash';
import createMethods from './createMethodsString';

@@ -12,4 +13,5 @@ const valNameRegExpStr = '^_[a-zA-Z][a-zA-Z0-9_]*';

const getMethodsString = (filepath, methods, indent, newPrefix, newUrl) => {
const importName = `Methods${imports.length}`;
imports.push(`import type { Methods as ${importName} } from '${filepath.replace(/'/g, "\\'")}';`);
const path = filepath.replace(/'/g, "\\'");
const importName = `Methods_${createHash(path)}`;
imports.push(`import type { Methods as ${importName} } from '${path}';`);
let newPath = `'${decodeURIComponent(newUrl)}${trailingSlash ? '/' : ''}'`;

@@ -16,0 +18,0 @@ if (newPath.length > 2) {

{
"name": "aspida",
"version": "1.13.3",
"version": "1.14.0",
"description": "TypeScript friendly HTTP client wrapper for the browser and node.js",

@@ -5,0 +5,0 @@ "author": "Solufa <solufa2020@gmail.com>",

@@ -46,3 +46,3 @@ # aspida

```sh
$ npm install @aspida/axios axios
$ npm install aspida @aspida/axios axios
```

@@ -53,3 +53,3 @@

```sh
$ yarn add @aspida/axios axios
$ yarn add aspida @aspida/axios axios
```

@@ -56,0 +56,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

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