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

ajaon

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajaon - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

app/dist/ajaon.d.ts

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

declare class AjaonPromise<Res = any, Error = string> extends Promise<Res> {
export declare class AjaonPromise<Res = any, Error = string> extends Promise<Res> {
constructor(f: (res: (res: Res) => void, fail: (err: Error) => void) => void);

@@ -17,3 +17,3 @@ private hasFailed;

};
export default function ajaon(apiUrl: string, sessKeyKey: string | SessKeyKey, verbose?: boolean): {
export default function ajaon(apiUrl: string, sessKeyKey?: string | SessKeyKey, verbose?: boolean): {
post: <Res = GenericObject>(url: string | string[], body: string | object, headers?: HeadersInit) => AjaonPromise<Res, string>;

@@ -20,0 +20,0 @@ get: <Res_1>(...url: string[]) => Promise<Res_1>;

import clone from "tiny-clone";
class AjaonPromise extends Promise {
export class AjaonPromise extends Promise {
constructor(f) {

@@ -42,3 +42,3 @@ super((res) => {

const constructConsoleWarnVerbose = constructConsoleType("warn");
export default function ajaon(apiUrl, sessKeyKey, verbose = true) {
export default function ajaon(apiUrl, sessKeyKey = "sessKey", verbose = true) {
const warn = constructConsoleWarnVerbose(verbose);

@@ -45,0 +45,0 @@ if (apiUrl.charAt(apiUrl.length - 1) !== "/")

@@ -5,3 +5,3 @@ import clone from "tiny-clone"

class AjaonPromise<Res = any, Error = string> extends Promise<Res> {
export class AjaonPromise<Res = any, Error = string> extends Promise<Res> {
constructor(f: (res: (res: Res) => void, fail: (err: Error) => void) => void) {

@@ -51,3 +51,3 @@ super((res) => {

export default function ajaon(apiUrl: string, sessKeyKey: string | SessKeyKey, verbose: boolean = true) {
export default function ajaon(apiUrl: string, sessKeyKey: string | SessKeyKey = "sessKey", verbose: boolean = true) {
const warn = constructConsoleWarnVerbose(verbose)

@@ -54,0 +54,0 @@

{
"name": "ajaon",
"version": "1.0.0",
"version": "1.0.1",
"description": "Asynchron js and json. A tiny, fetch based http client for the web.",

@@ -5,0 +5,0 @@ "main": "app/dist/ajaon.js",

@@ -0,0 +0,0 @@ # Ajaon

@@ -0,0 +0,0 @@ import ajaon from "./../../app/src/ajaon"

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ const InjectPlugin = require('webpack-inject-plugin').default;

@@ -0,0 +0,0 @@ const merge = require('webpack-merge');

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