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

@jspolicy/types

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspolicy/types - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

38

lib/functions.d.ts

@@ -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;
};
}

2

package.json
{
"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
}
}
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