Socket
Socket
Sign inDemoInstall

@psdk/frame

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@psdk/frame - npm Package Compare versions

Comparing version 0.0.19-snapshot to 0.0.20-snapshot

6

build/device/adapter/connected_device.d.ts
/**
* Connectec device
*/
import { ConnectionState } from "./types";
import { ConnectionState, ReadOptions } from "./types";
export interface ConnectedDevice {

@@ -21,3 +21,3 @@ /**

*/
read(): Promise<Uint8Array>;
read(options?: ReadOptions): Promise<Uint8Array>;
}

@@ -30,5 +30,5 @@ /**

deviceName(): string;
read(): Promise<Uint8Array>;
read(options?: ReadOptions): Promise<Uint8Array>;
write(data: Uint8Array): Promise<void>;
}
//# sourceMappingURL=connected_device.d.ts.map

@@ -28,3 +28,3 @@ "use strict";

}
read() {
read(options) {
return __awaiter(this, void 0, void 0, function* () {

@@ -31,0 +31,0 @@ return father_1.PsdkConst.EMPTY_BYTES;

@@ -52,2 +52,19 @@ /**

}
/**
* Read options
*/
export declare class ReadOptions {
readonly timeout: any;
readonly length?: any;
constructor(options?: {
/**
* Read timeout, default is 10
*/
timeout?: number;
/**
* Read length, default is null
*/
length?: number;
});
}
//# sourceMappingURL=types.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WroteReporter = exports.ConnectionState = void 0;
exports.ReadOptions = exports.WroteReporter = exports.ConnectionState = void 0;
/**

@@ -46,1 +46,12 @@ * Connection state

exports.WroteReporter = WroteReporter;
/**
* Read options
*/
class ReadOptions {
constructor(options) {
var _a;
this.timeout = (_a = options === null || options === void 0 ? void 0 : options.timeout) !== null && _a !== void 0 ? _a : 10;
this.length = options === null || options === void 0 ? void 0 : options.length;
}
}
exports.ReadOptions = ReadOptions;
{
"name": "@psdk/frame",
"version": "0.0.19-snapshot",
"version": "0.0.20-snapshot",
"description": "psdk",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is too big to display

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