@jspolicy/types
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,7 +0,39 @@ | ||
export declare type Deny = (message: string) => void; | ||
export declare type Allow = () => void; | ||
export declare type Mutate = (object: object) => void; | ||
import { V1AdmissionRequest } from "./v1AdmissionRequest"; | ||
declare global { | ||
var request: V1AdmissionRequest; | ||
function deny(message: string): void; | ||
function allow(): void; | ||
function exit(): void; | ||
function mutate(object: object): void; | ||
function get<T>(kind: string, apiVersion: string, name: string, options?: { | ||
cache?: 'smart' | boolean; | ||
}): T | undefined; | ||
function list<T>(kind: string, apiVersion: string, options?: { | ||
cache?: 'smart' | boolean; | ||
labelSelector?: string; | ||
namespace?: string; | ||
}): Array<T>; | ||
function print(...nums: any[]): void; | ||
function env(name: string): string; | ||
function sleep(milliseconds: number): void; | ||
function readFileSync(filename: string): string | undefined; | ||
function atob(encodedStr: string): string; | ||
function btoa(rawStr: string): string; | ||
function fetchSync(url: string, options?: { | ||
method?: string; | ||
headers?: { | ||
[name: string]: string; | ||
}; | ||
insecure?: boolean; | ||
body?: string; | ||
}): { | ||
text: () => string; | ||
json: () => object; | ||
headers: { | ||
[name: string]: string; | ||
}; | ||
status: string; | ||
statusText: string; | ||
ok: boolean; | ||
}; | ||
} |
{ | ||
"name": "@jspolicy/types", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Types needed to use typescript with jspolicy", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,10 +0,31 @@ | ||
export type Deny = (message: string) => void; | ||
import {V1AdmissionRequest} from "./v1AdmissionRequest"; | ||
export type Allow = () => void; | ||
export type Mutate = (object: object) => void; | ||
declare global { | ||
var request: V1AdmissionRequest; | ||
function deny(message: string): void; | ||
function allow(): void; | ||
function exit(): void; | ||
function mutate(object: object): void; | ||
function get<T>(kind: string, apiVersion: string, name: string, options?: {cache?: 'smart' | boolean}): T | undefined; | ||
function list<T>(kind: string, apiVersion: string, options?: { cache?: 'smart' | boolean, labelSelector?: string, namespace?: string }): Array<T>; | ||
function print(...nums: any[]): void; | ||
function env(name: string): string; | ||
function sleep(milliseconds: number): void; | ||
function readFileSync(filename: string): string | undefined; | ||
function atob(encodedStr: string): string; | ||
function btoa(rawStr: string): string; | ||
function fetchSync(url: string, options?: { | ||
method?: string, | ||
headers?: {[name: string]: string}, | ||
insecure?: boolean, | ||
body?: string, | ||
}): { | ||
text: () => string, | ||
json: () => object, | ||
headers: {[name: string]: string}, | ||
status: string, | ||
statusText: string, | ||
ok: boolean | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32003
839