From a7e3d016020de0e895a72d4d26ce803d1b64578f Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Sun, 22 Dec 2024 15:42:40 -0800 Subject: [PATCH] Fix argument order in `createPlaceHolder()` --- .changeset/moody-guests-punch.md | 5 +++++ packages/ncm/src/content-storage.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/moody-guests-punch.md diff --git a/.changeset/moody-guests-punch.md b/.changeset/moody-guests-punch.md new file mode 100644 index 00000000..83375577 --- /dev/null +++ b/.changeset/moody-guests-punch.md @@ -0,0 +1,5 @@ +--- +"@nx.js/ncm": patch +--- + +Fix argument order in `createPlaceHolder()` diff --git a/packages/ncm/src/content-storage.ts b/packages/ncm/src/content-storage.ts index 1076c293..1076a9d1 100644 --- a/packages/ncm/src/content-storage.ts +++ b/packages/ncm/src/content-storage.ts @@ -60,8 +60,8 @@ export class NcmContentStorage { //} const inData = new ArrayBuffer(0x28); const inDataView = new Uint8Array(inData); - inDataView.set(new Uint8Array(contentId), 0); - inDataView.set(new Uint8Array(placeholderId), 0x10); + inDataView.set(new Uint8Array(placeholderId), 0); + inDataView.set(new Uint8Array(contentId), 0x10); new BigInt64Array(inData, 0x20, 1)[0] = size; this.#srv.dispatchIn(1, inData); }