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

@types/emscripten

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/emscripten - npm Package Compare versions

Comparing version 1.39.12 to 1.39.13

94

emscripten/index.d.ts

@@ -137,4 +137,14 @@ /** Other WebAssembly declarations, for compatibility with older versions of Typescript */

position: number;
fd?: number;
nfd?: number;
}
interface StreamOps {
open(stream: FSStream): void;
close(stream: FSStream): void;
read(stream: FSStream, buffer: Uint8Array, offset: number, length: number, position: number): number;
write(stream: FSStream, buffer: Uint8Array, offset: number, length: number, position: number): number;
llseek(stream: FSStream, offset: number, whence: number): number;
}
class FSNode {

@@ -157,2 +167,32 @@ parent: FSNode;

interface NodeOps {
getattr(node: FSNode): Stats;
setattr(node: FSNode, attr: Stats): void;
lookup(parent: FSNode, name: string): FSNode;
mknod(parent: FSNode, name: string, mode: number, dev: unknown): FSNode;
rename(oldNode: FSNode, newDir: FSNode, newName: string): void;
unlink(parent: FSNode, name: string): void;
rmdir(parent: FSNode, name: string): void;
readdir(node: FSNode): string[];
symlink(parent: FSNode, newName: string, oldPath: string): void;
readlink(node: FSNode): string;
}
interface Stats {
dev: number;
ino: number;
mode: number;
nlink: number;
uid: number;
gid: number;
rdev: number;
size: number;
blksize: number;
blocks: number;
atime: Date;
mtime: Date;
ctime: Date;
timestamp?: number;
}
class ErrnoError extends Error {

@@ -162,8 +202,21 @@ name: "ErronoError";

code: string;
constructor(errno: number);
}
let ignorePermissions: boolean;
let trackingDelegate: any;
let trackingDelegate: {
onOpenFile(path: string, trackingFlags: number): unknown;
onCloseFile(path: string): unknown;
onSeekFile(path: string, position: number, whence: number): unknown;
onReadFile(path: string, bytesRead: number): unknown;
onWriteToFile(path: string, bytesWritten: number): unknown;
onMakeDirectory(path: string, mode: number): unknown;
onMakeSymlink(oldpath: string, newpath: string): unknown;
willMovePath(old_path: string, new_path: string): unknown;
onMovePath(old_path: string, new_path: string): unknown;
willDeletePath(path: string): unknown;
onDeletePath(path: string): unknown;
};
let tracking: any;
let genericErrors: any;
let genericErrors: Record<number, ErrnoError>;

@@ -173,3 +226,15 @@ //

//
function lookupPath(path: string, opts: any): Lookup;
function lookupPath(
path: string,
opts: Partial<{
follow_mount: boolean;
/**
* by default, lookupPath will not follow a symlink if it is the final path component.
* setting opts.follow = true will override this behavior.
*/
follow: boolean;
recurse_count: number;
parent: boolean;
}>,
): Lookup;
function getPath(node: FSNode): string;

@@ -195,3 +260,4 @@ function analyzePath(path: string, dontResolveLastLink?: boolean): Analyze;

function makedev(ma: number, mi: number): number;
function registerDevice(dev: number, ops: any): void;
function registerDevice(dev: number, ops: Partial<StreamOps>): void;
function getDevice(dev: number): { stream_ops: StreamOps };

@@ -201,2 +267,3 @@ //

//
function getMounts(mount: Mount): Mount[];
function syncfs(populate: boolean, callback: (e: any) => any): void;

@@ -207,12 +274,12 @@ function syncfs(callback: (e: any) => any, populate?: boolean): void;

function mkdir(path: string, mode?: number): any;
function mkdev(path: string, mode?: number, dev?: number): any;
function symlink(oldpath: string, newpath: string): any;
function mkdir(path: string, mode?: number): FSNode;
function mkdev(path: string, mode?: number, dev?: number): FSNode;
function symlink(oldpath: string, newpath: string): FSNode;
function rename(old_path: string, new_path: string): void;
function rmdir(path: string): void;
function readdir(path: string): any;
function readdir(path: string): string[];
function unlink(path: string): void;
function readlink(path: string): string;
function stat(path: string, dontFollow?: boolean): any;
function lstat(path: string): any;
function stat(path: string, dontFollow?: boolean): Stats;
function lstat(path: string): Stats;
function chmod(path: string, mode: number, dontFollow?: boolean): void;

@@ -229,3 +296,3 @@ function lchmod(path: string, mode: number): void;

function close(stream: FSStream): void;
function llseek(stream: FSStream, offset: number, whence: number): any;
function llseek(stream: FSStream, offset: number, whence: number): number;
function read(stream: FSStream, buffer: ArrayBufferView, offset: number, length: number, position?: number): number;

@@ -249,3 +316,6 @@ function write(

flags: number,
): any;
): {
allocated: boolean;
ptr: number;
};
function ioctl(stream: FSStream, cmd: any, arg: any): any;

@@ -252,0 +322,0 @@ function readFile(path: string, opts: { encoding: "binary"; flags?: string | undefined }): Uint8Array;

4

emscripten/package.json
{
"name": "@types/emscripten",
"version": "1.39.12",
"version": "1.39.13",
"description": "TypeScript definitions for emscripten",

@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/emscripten",

"dependencies": {},
"typesPublisherContentHash": "1301c8600cbde6d5a17517ffec4e8abbadd28cf0d0fe86719869fcc8bf48475d",
"typesPublisherContentHash": "e4c38466f07759bfefe22fd073222d18f79b78112fc989c972f3e86c81b49800",
"typeScriptVersion": "4.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 13 May 2024 23:07:28 GMT
* Last updated: Tue, 28 May 2024 20:07:23 GMT
* Dependencies: none

@@ -14,0 +14,0 @@

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