@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.
- package/dist/cjs/jats/exporter/jats-exporter.js +1 -1
- package/dist/cjs/schema/migration/migration-scripts/{3.0.10.js → 3.0.12.js} +5 -5
- package/dist/cjs/schema/migration/migration-scripts/index.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/jats/exporter/jats-exporter.js +1 -1
- package/dist/es/schema/migration/migration-scripts/{3.0.10.js → 3.0.12.js} +3 -3
- package/dist/es/schema/migration/migration-scripts/index.js +2 -2
- package/dist/es/version.js +1 -1
- package/dist/types/schema/migration/migration-scripts/{3.0.10.d.ts → 3.0.12.d.ts} +1 -1
- package/dist/types/schema/migration/migration-scripts/index.d.ts +2 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
4
|
-
class
|
|
3
|
+
exports.Migration3012 = void 0;
|
|
4
|
+
class Migration3012 {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.fromVersion = '3.0.
|
|
7
|
-
this.toVersion = '3.0.
|
|
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.
|
|
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
|
|
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
|
|
27
|
+
new _3_0_12_1.Migration3012(),
|
|
28
28
|
];
|
|
29
29
|
exports.default = migrations;
|
package/dist/cjs/version.js
CHANGED
|
@@ -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.
|
|
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()) {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Migration125 from './1.2.5';
|
|
17
17
|
import Migration2322 from './2.3.22';
|
|
18
|
-
import {
|
|
18
|
+
import { Migration3012 } from './3.0.12';
|
|
19
19
|
const migrations = [
|
|
20
20
|
new Migration125(),
|
|
21
21
|
new Migration2322(),
|
|
22
|
-
new
|
|
22
|
+
new Migration3012(),
|
|
23
23
|
];
|
|
24
24
|
export default migrations;
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.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
|
|
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 {
|
|
19
|
-
declare const migrations: (Migration125 | Migration2322 |
|
|
18
|
+
import { Migration3012 } from './3.0.12';
|
|
19
|
+
declare const migrations: (Migration125 | Migration2322 | Migration3012)[];
|
|
20
20
|
export default migrations;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.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.
|
|
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",
|