@manuscripts/transform 3.0.12-remove-toc.0 → 3.0.13-remove-toc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -351,7 +351,7 @@ class JATSExporter {
351
351
  const date = new Date(timestamp * 1000);
352
352
  const lookup = {
353
353
  year: date.getUTCFullYear().toString(),
354
- month: (date.getMonth() + 1).toString().padStart(2, '0'),
354
+ month: (date.getUTCMonth() + 1).toString().padStart(2, '0'),
355
355
  day: date.getUTCDate().toString().padStart(2, '0'),
356
356
  };
357
357
  for (const [key, value] of Object.entries(lookup).reverse()) {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migration3010 = void 0;
4
- class Migration3010 {
3
+ exports.Migration3012 = void 0;
4
+ class Migration3012 {
5
5
  constructor() {
6
- this.fromVersion = '3.0.9';
7
- this.toVersion = '3.0.10';
6
+ this.fromVersion = '3.0.12';
7
+ this.toVersion = '3.0.13';
8
8
  }
9
9
  migrateNode(node) {
10
10
  var _a;
@@ -15,4 +15,4 @@ class Migration3010 {
15
15
  return node;
16
16
  }
17
17
  }
18
- exports.Migration3010 = Migration3010;
18
+ exports.Migration3012 = Migration3012;
@@ -20,10 +20,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  const _1_2_5_1 = __importDefault(require("./1.2.5"));
22
22
  const _2_3_22_1 = __importDefault(require("./2.3.22"));
23
- const _3_0_10_1 = require("./3.0.10");
23
+ const _3_0_12_1 = require("./3.0.12");
24
24
  const migrations = [
25
25
  new _1_2_5_1.default(),
26
26
  new _2_3_22_1.default(),
27
- new _3_0_10_1.Migration3010(),
27
+ new _3_0_12_1.Migration3012(),
28
28
  ];
29
29
  exports.default = migrations;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "3.0.12-remove-toc.0";
4
+ exports.VERSION = "3.0.13-remove-toc.0";
@@ -343,7 +343,7 @@ export class JATSExporter {
343
343
  const date = new Date(timestamp * 1000);
344
344
  const lookup = {
345
345
  year: date.getUTCFullYear().toString(),
346
- month: (date.getMonth() + 1).toString().padStart(2, '0'),
346
+ month: (date.getUTCMonth() + 1).toString().padStart(2, '0'),
347
347
  day: date.getUTCDate().toString().padStart(2, '0'),
348
348
  };
349
349
  for (const [key, value] of Object.entries(lookup).reverse()) {
@@ -1,7 +1,7 @@
1
- export class Migration3010 {
1
+ export class Migration3012 {
2
2
  constructor() {
3
- this.fromVersion = '3.0.9';
4
- this.toVersion = '3.0.10';
3
+ this.fromVersion = '3.0.12';
4
+ this.toVersion = '3.0.13';
5
5
  }
6
6
  migrateNode(node) {
7
7
  var _a;
@@ -15,10 +15,10 @@
15
15
  */
16
16
  import Migration125 from './1.2.5';
17
17
  import Migration2322 from './2.3.22';
18
- import { Migration3010 } from './3.0.10';
18
+ import { Migration3012 } from './3.0.12';
19
19
  const migrations = [
20
20
  new Migration125(),
21
21
  new Migration2322(),
22
- new Migration3010(),
22
+ new Migration3012(),
23
23
  ];
24
24
  export default migrations;
@@ -1 +1 @@
1
- export const VERSION = "3.0.12-remove-toc.0";
1
+ export const VERSION = "3.0.13-remove-toc.0";
@@ -1,6 +1,6 @@
1
1
  import { JSONNode } from '../migrate';
2
2
  import { MigrationScript } from '../migration-script';
3
- export declare class Migration3010 implements MigrationScript {
3
+ export declare class Migration3012 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
6
  migrateNode(node: JSONNode): JSONNode;
@@ -15,6 +15,6 @@
15
15
  */
16
16
  import Migration125 from './1.2.5';
17
17
  import Migration2322 from './2.3.22';
18
- import { Migration3010 } from './3.0.10';
19
- declare const migrations: (Migration125 | Migration2322 | Migration3010)[];
18
+ import { Migration3012 } from './3.0.12';
19
+ declare const migrations: (Migration125 | Migration2322 | Migration3012)[];
20
20
  export default migrations;
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.12-remove-toc.0";
1
+ export declare const VERSION = "3.0.13-remove-toc.0";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "3.0.12-remove-toc.0",
4
+ "version": "3.0.13-remove-toc.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",