Socket
Socket
Sign inDemoInstall

@pnp/queryable

Package Overview
Dependencies
Maintainers
13
Versions
881
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/queryable - npm Package Compare versions

Comparing version 3.0.0-v3nightly.20210905 to 3.0.0-v3nightly.20210906

0

add-prop.d.ts

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

import { TimelinePipe } from "@pnp/core";
export declare function BearerToken(token: string): TimelinePipe;
//# sourceMappingURL=bearer-token.d.ts.map

@@ -0,0 +0,0 @@ import { InjectHeaders } from "./inject-headers.js";

@@ -0,0 +0,0 @@ import { Queryable } from "../queryable.js";

@@ -0,0 +0,0 @@ import { delay } from "@pnp/core";

@@ -0,0 +0,0 @@ import { Queryable } from "../queryable.js";

@@ -0,0 +0,0 @@ import { isFunc, getHashCode, PnPClientStorage, dateAdd } from "@pnp/core";

@@ -0,0 +0,0 @@ import { Queryable } from "../queryable.js";

@@ -0,0 +0,0 @@ import { isFunc, getHashCode, PnPClientStorage, getGUID, extend } from "@pnp/core";

import { TimelinePipe } from "@pnp/core";
export declare function InjectHeaders(headers: Record<string, string>): TimelinePipe;
//# sourceMappingURL=inject-headers.d.ts.map

@@ -0,0 +0,0 @@ export function InjectHeaders(headers) {

@@ -0,0 +0,0 @@ import { Queryable } from "../queryable";

@@ -0,0 +0,0 @@ import { hOP } from "@pnp/core";

@@ -0,0 +0,0 @@ import { TimelinePipe } from "@pnp/core";

@@ -0,0 +0,0 @@ import { From_JulieHatesThisName } from "@pnp/core";

@@ -0,0 +0,0 @@ export * from "./add-prop.js";

@@ -0,0 +0,0 @@ export * from "./add-prop.js";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { get, op } from "./operations";

16

operations.d.ts

@@ -1,9 +0,9 @@

import { IQueryable2 } from "./queryable";
export declare type Operation = <T = any>(this: IQueryable2, init?: RequestInit) => Promise<T>;
export declare function get<T = any>(this: IQueryable2, init?: RequestInit): Promise<T>;
export declare function post<T = any>(this: IQueryable2, init?: RequestInit): Promise<T>;
export declare function put<T = any>(this: IQueryable2, init?: RequestInit): Promise<T>;
export declare function patch<T = any>(this: IQueryable2, init?: RequestInit): Promise<T>;
export declare function del<T = any>(this: IQueryable2, init?: RequestInit): Promise<T>;
export declare function op<T>(q: IQueryable2, operation: Operation, init?: RequestInit): Promise<T>;
import { IQueryableInternal } from "./queryable";
export declare type Operation = <T = any>(this: IQueryableInternal, init?: RequestInit) => Promise<T>;
export declare function get<T = any>(this: IQueryableInternal, init?: RequestInit): Promise<T>;
export declare function post<T = any>(this: IQueryableInternal, init?: RequestInit): Promise<T>;
export declare function put<T = any>(this: IQueryableInternal, init?: RequestInit): Promise<T>;
export declare function patch<T = any>(this: IQueryableInternal, init?: RequestInit): Promise<T>;
export declare function del<T = any>(this: IQueryableInternal, init?: RequestInit): Promise<T>;
export declare function op<T>(q: IQueryableInternal, operation: Operation, init?: RequestInit): Promise<T>;
//# sourceMappingURL=operations.d.ts.map

@@ -0,0 +0,0 @@ import { objectDefinedNotNull } from "@pnp/core";

{
"name": "@pnp/queryable",
"version": "3.0.0-v3nightly.20210905",
"version": "3.0.0-v3nightly.20210906",
"description": "pnp - provides shared odata functionality and base classes",

@@ -9,3 +9,3 @@ "main": "./index.js",

"tslib": "2.1.0",
"@pnp/core": "3.0.0-v3nightly.20210905"
"@pnp/core": "3.0.0-v3nightly.20210906"
},

@@ -12,0 +12,0 @@ "author": {

@@ -1,5 +0,5 @@

import { IQueryable2 } from "./queryable.js";
export declare function queryableFactory<InstanceType extends IQueryable2>(constructor: {
new (init: IQueryable2<any> | string, path?: string): InstanceType;
}): (init: IQueryable2<any> | string, path?: string) => InstanceType;
import { IQueryableInternal } from "./queryable.js";
export declare function queryableFactory<InstanceType extends IQueryableInternal>(constructor: {
new (init: IQueryableInternal<any> | string, path?: string): InstanceType;
}): (init: IQueryableInternal<any> | string, path?: string) => InstanceType;
//# sourceMappingURL=queryable-factory.d.ts.map

@@ -0,0 +0,0 @@ export function queryableFactory(constructor) {

import { Timeline } from "@pnp/core";
import { IInvokable } from "./invokable.js";
export declare type QueryablePreObserver = (this: IQueryable2, url: string, init: RequestInit, result: any) => Promise<[string, RequestInit, any]>;
export declare type QueryableAuthObserver = (this: IQueryable2, url: URL, init: RequestInit) => Promise<[URL, RequestInit]>;
export declare type QueryableSendObserver = (this: IQueryable2, url: URL, init: RequestInit) => Promise<Response>;
export declare type QueryableParseObserver = (this: IQueryable2, url: URL, response: Response, result: any | undefined) => Promise<[URL, Response, any]>;
export declare type QueryablePostObserver = (this: IQueryable2, url: URL, result: any | undefined) => Promise<[URL, any]>;
export declare type QueryableDataObserver<T = any> = (this: IQueryable2, result: T) => void;
export declare type QueryablePreObserver = (this: IQueryableInternal, url: string, init: RequestInit, result: any) => Promise<[string, RequestInit, any]>;
export declare type QueryableAuthObserver = (this: IQueryableInternal, url: URL, init: RequestInit) => Promise<[URL, RequestInit]>;
export declare type QueryableSendObserver = (this: IQueryableInternal, url: URL, init: RequestInit) => Promise<Response>;
export declare type QueryableParseObserver = (this: IQueryableInternal, url: URL, response: Response, result: any | undefined) => Promise<[URL, Response, any]>;
export declare type QueryablePostObserver = (this: IQueryableInternal, url: URL, result: any | undefined) => Promise<[URL, any]>;
export declare type QueryableDataObserver<T = any> = (this: IQueryableInternal, result: T) => void;
declare const DefaultMoments: {

@@ -17,3 +17,3 @@ readonly pre: (observers: QueryablePreObserver[], url: string, init: RequestInit, result: any) => Promise<[url: string, init: RequestInit, result: any]>;

};
export declare class Queryable<R> extends Timeline<typeof DefaultMoments> implements IQueryable2<R> {
export declare class Queryable<R> extends Timeline<typeof DefaultMoments> implements IQueryableInternal<R> {
protected _url: string;

@@ -50,5 +50,5 @@ private _query;

}
export interface IQueryable2<R = any> extends Timeline<any>, IInvokable {
export interface IQueryableInternal<R = any> extends Timeline<any>, IInvokable {
readonly query: Map<string, string>;
<T = R>(this: IQueryable2, init?: RequestInit): Promise<T>;
<T = R>(this: IQueryableInternal, init?: RequestInit): Promise<T>;
using(behavior: (intance: Timeline<any>) => Timeline<any>): this;

@@ -55,0 +55,0 @@ toRequestUrl(): string;

@@ -0,0 +0,0 @@ import { __decorate } from "tslib";

@@ -0,0 +0,0 @@ ![SharePoint Patterns and Practices](https://devofficecdn.azureedge.net/media/Default/PnP/sppnp.png)

@@ -0,0 +0,0 @@ export declare function body<T = unknown, U = any>(o: U, previous?: T): T & {

@@ -0,0 +0,0 @@ import { jsS } from "@pnp/core";

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

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