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

@unrouted/fetch

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unrouted/fetch - npm Package Compare versions

Comparing version 0.4.18 to 0.5.0

8

dist/index.d.ts
import { FetchOptions } from 'ohmyfetch';
import { GetRoutes, PostRoutes, PutRoutes, PatchRoutes, DeleteRoutes, OptionsRoutes } from '@unrouted/core';
declare type ValueOf<C> = C extends Record<any, any> ? C[keyof C] : never;
declare type RoutesKey<Route extends string, C> = ValueOf<{
type ValueOf<C> = C extends Record<any, any> ? C[keyof C] : never;
type RoutesKey<Route extends string, C> = ValueOf<{
[key in keyof C]: Route extends key | '/' ? key : never;
}>;
declare type MiddlewareOf<Route extends string, C> = Exclude<C[RoutesKey<Route, C>], Error | void>;
declare type TypedInternalResponse<Route, Default, C> = Default extends string | boolean | number | null | void | object ? Default : Route extends string ? MiddlewareOf<Route, C> extends never ? Default : MiddlewareOf<Route, C> : Default;
type MiddlewareOf<Route extends string, C> = Exclude<C[RoutesKey<Route, C>], Error | void>;
type TypedInternalResponse<Route, Default, C> = Default extends string | boolean | number | null | void | object ? Default : Route extends string ? MiddlewareOf<Route, C> extends never ? Default : MiddlewareOf<Route, C> : Default;

@@ -11,0 +11,0 @@ declare function $get<R extends string, Default = unknown>(url: R, opts?: FetchOptions): Promise<TypedInternalResponse<R, Default, GetRoutes>>;

{
"name": "@unrouted/fetch",
"version": "0.4.18",
"version": "0.5.0",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/harlan-zw",
"homepage": "https://github.com/harlan-zw/unrouted#readme",
"bugs": {
"url": "https://github.com/harlan-zw/unrouted/issues"
},
"license": "MIT",
"author": "Harlan Wilton <harlan@harlanzw.com>",
"repository": {

@@ -15,13 +13,16 @@ "type": "git",

},
"funding": "https://github.com/sponsors/harlan-zw",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bugs": {
"url": "https://github.com/harlan-zw/unrouted/issues"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
"import": "./dist/index.mjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [

@@ -31,8 +32,7 @@ "dist",

],
"sideEffects": false,
"dependencies": {
"ohmyfetch": "^0.4.18"
"ohmyfetch": "^0.4.21"
},
"devDependencies": {
"@unrouted/core": "0.4.18"
"@unrouted/core": "0.5.0"
},

@@ -39,0 +39,0 @@ "scripts": {

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