@psdk/frame-father
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -30,2 +30,3 @@ import { Arg, BasicArg } from "../arg"; | ||
clause(): CommandClause; | ||
newline(): boolean; | ||
} | ||
@@ -32,0 +33,0 @@ export declare abstract class OnlyTextHeaderArg<T extends OnlyTextHeaderArg<any>> extends EasyArg<string> { |
@@ -63,2 +63,5 @@ import { BasicArg } from "../arg"; | ||
} | ||
newline() { | ||
return false; | ||
} | ||
} | ||
@@ -65,0 +68,0 @@ export class OnlyTextHeaderArg extends EasyArg { |
@@ -26,3 +26,3 @@ /** | ||
const t_binary = Array.prototype.slice.call(t_buffer, 0); | ||
bytes.push(...t_binary); | ||
bytes = bytes.concat(t_binary); | ||
//# use utf8 encoding | ||
@@ -36,3 +36,3 @@ // const t_binary = ByteKit.textToU8A(t) | ||
const b = Array.from((_b = clause.binary) !== null && _b !== void 0 ? _b : PsdkConst.EMPTY_BYTES); | ||
bytes.push(...b); | ||
bytes = bytes.concat(b); | ||
break; | ||
@@ -39,0 +39,0 @@ } |
@@ -59,3 +59,3 @@ import { Checker } from "../../../toolkit"; | ||
if (!Checker.truthy(arg)) | ||
return arg; | ||
return this._quote ? '""' : ''; | ||
if (this._quote) { | ||
@@ -62,0 +62,0 @@ return `"${arg}"`; |
import { CommandClause } from "../print/command_clause"; | ||
export declare class BinaryCommand { | ||
private readonly binary; | ||
private binary; | ||
constructor(binary?: Array<number>); | ||
@@ -5,0 +5,0 @@ static make(): BinaryCommand; |
@@ -30,3 +30,3 @@ /** | ||
const b = Array.from(u8a); | ||
this.binary.push(...b); | ||
this.binary = this.binary.concat(b); | ||
return this; | ||
@@ -33,0 +33,0 @@ } |
@@ -5,3 +5,3 @@ /** | ||
import { Command } from "./command"; | ||
import { Commander } from "./command/print/commander"; | ||
import { Commander } from "./command"; | ||
import { ConnectedDevice, WroteReporter } from "../device/adapter"; | ||
@@ -8,0 +8,0 @@ import { WriteOptions } from "./types"; |
@@ -17,3 +17,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
sversion() { | ||
return '0.0.18-snapshot'; | ||
return '0.2.67'; | ||
} | ||
@@ -20,0 +20,0 @@ /** |
{ | ||
"name": "@psdk/frame-father", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "psdk", | ||
@@ -35,3 +35,3 @@ "main": "build/index.js", | ||
], | ||
"gitHead": "9796259a6a24ae7e334340f6c28d5ae9b3e45401" | ||
"gitHead": "e6a5cd6d59ef0ae61226a47d72fbe059a787d291" | ||
} |
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
72660
2017