From 12c4b0893d4c14239e6b95d6d18c55e409eefdcc Mon Sep 17 00:00:00 2001 From: skdhg <46562212+skdhg@users.noreply.github.com> Date: Sat, 15 Jul 2023 18:44:16 +0545 Subject: [PATCH] 0.0.0 --- lib/binding.d.ts | 2 +- package.json | 4 ++-- src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/binding.d.ts b/lib/binding.d.ts index 915c427..0155776 100644 --- a/lib/binding.d.ts +++ b/lib/binding.d.ts @@ -14,7 +14,7 @@ export interface ProbeResult { codec: JsCodecType /** The number of frames */ nFrames: number - /** The duration of this media in seconds */ + /** The approximate duration of this media in seconds */ duration: number } export const enum CodecType { diff --git a/package.json b/package.json index b5e7bb3..74be9ef 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ }, "scripts": { "artifacts": "napi artifacts", - "build": "yarn build:debug --release", - "build:debug": "napi build --platform --dts binding.d.ts --js ./lib/binding.js ./lib", + "build": "napi build --platform --release --dts binding.d.ts --js binding.js ./lib", + "build:debug": "napi build --platform --dts binding.d.ts --js binding.js ./lib", "prepublishOnly": "napi prepublish -t npm", "test": "ava", "universal": "napi universal", diff --git a/src/lib.rs b/src/lib.rs index f7b30e8..7347850 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ pub struct JsProbeResult { pub codec: JsCodecType, /// The number of frames pub n_frames: u32, - /// The duration of this media in seconds + /// The approximate duration of this media in seconds pub duration: u32, }