diff --git a/package-lock.json b/package-lock.json index a236a722f57..eb91ae9bb0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "xml-js": "^1.6.8" }, "devDependencies": { - "@esbuild/win32-x64": "^0.18.3", "@types/inquirer": "^9.0.3", "@types/prompt": "^1.1.1", "@types/unzipper": "^0.10.4", @@ -873,21 +872,6 @@ "node": ">=12" } }, - "node_modules/@esbuild/win32-x64": { - "version": "0.18.14", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.14.tgz", - "integrity": "sha512-K0QjGbcskx+gY+qp3v4/940qg8JitpXbdxFhRDA1aYoNaPff88+aEwoq45aqJ+ogpxQxmU0ZTjgnrQD/w8iiUg==", - "cpu": [ - "x64" - ], - "dev": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", @@ -12868,12 +12852,6 @@ "dev": true, "optional": true }, - "@esbuild/win32-x64": { - "version": "0.18.14", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.14.tgz", - "integrity": "sha512-K0QjGbcskx+gY+qp3v4/940qg8JitpXbdxFhRDA1aYoNaPff88+aEwoq45aqJ+ogpxQxmU0ZTjgnrQD/w8iiUg==", - "dev": true - }, "@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", diff --git a/package.json b/package.json index 1b66e433f8e..1e4a1aff5b7 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,6 @@ }, "homepage": "https://docx.js.org", "devDependencies": { - "@esbuild/win32-x64": "^0.18.3", "@types/inquirer": "^9.0.3", "@types/prompt": "^1.1.1", "@types/unzipper": "^0.10.4", diff --git a/src/file/numbering/numbering.ts b/src/file/numbering/numbering.ts index 242c3997956..daf9ca38c78 100644 --- a/src/file/numbering/numbering.ts +++ b/src/file/numbering/numbering.ts @@ -216,7 +216,7 @@ export class Numbering extends XmlComponent { abstractNumId: abstractNumbering.id, reference, instance, - overrideLevel: + overrideLevels: [ firstLevelStartNumber && Number.isInteger(firstLevelStartNumber) ? { num: 0, @@ -226,6 +226,7 @@ export class Numbering extends XmlComponent { num: 0, start: 1, }, + ], }; this.concreteNumberingMap.set(fullReference, new ConcreteNumbering(concreteNumberingSettings));