@manuscripts/transform 2.3.5 → 2.3.6

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.
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /*!
3
+ * © 2019 Atypon Systems LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.getVersion = void 0;
19
+ const version_1 = require("./version");
20
+ function getVersion() {
21
+ return version_1.VERSION;
22
+ }
23
+ exports.getVersion = getVersion;
package/dist/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.isSectionLabelNode = void 0;
17
+ exports.isSectionLabelNode = exports.getVersion = void 0;
18
18
  __exportStar(require("./lib/section-group-type"), exports);
19
19
  __exportStar(require("./lib/table-cell-styles"), exports);
20
20
  __exportStar(require("./lib/utils"), exports);
@@ -23,5 +23,7 @@ __exportStar(require("./transformer"), exports);
23
23
  __exportStar(require("./jats"), exports);
24
24
  __exportStar(require("./types"), exports);
25
25
  __exportStar(require("./errors"), exports);
26
+ var getVersion_1 = require("./getVersion");
27
+ Object.defineProperty(exports, "getVersion", { enumerable: true, get: function () { return getVersion_1.getVersion; } });
26
28
  var section_label_1 = require("./schema/nodes/section_label");
27
29
  Object.defineProperty(exports, "isSectionLabelNode", { enumerable: true, get: function () { return section_label_1.isSectionLabelNode; } });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VERSION = void 0;
4
+ exports.VERSION = "2.3.6";
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * © 2019 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { VERSION } from './version';
17
+ export function getVersion() {
18
+ return VERSION;
19
+ }
package/dist/es/index.js CHANGED
@@ -6,4 +6,5 @@ export * from './transformer';
6
6
  export * from './jats';
7
7
  export * from './types';
8
8
  export * from './errors';
9
+ export { getVersion } from './getVersion';
9
10
  export { isSectionLabelNode } from './schema/nodes/section_label';
@@ -0,0 +1 @@
1
+ export const VERSION = "2.3.6";
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * © 2019 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function getVersion(): string;
@@ -6,4 +6,5 @@ export * from './transformer';
6
6
  export * from './jats';
7
7
  export * from './types';
8
8
  export * from './errors';
9
+ export { getVersion } from './getVersion';
9
10
  export { isSectionLabelNode } from './schema/nodes/section_label';
@@ -0,0 +1 @@
1
+ export declare const VERSION = "2.3.6";
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": "2.3.5",
4
+ "version": "2.3.6",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -17,12 +17,13 @@
17
17
  "build": "npm-run-all --parallel build:*",
18
18
  "build:cjs": "tsc --outDir dist/cjs --module commonjs --project tsconfig.build.json",
19
19
  "build:es": "tsc --outDir dist/es --declarationDir dist/types --declaration --project tsconfig.build.json",
20
- "dev": "npm-run-all --parallel \"build:* --watch\"",
20
+ "dev": "yarn version-file && npm-run-all --parallel \"build:* --watch\"",
21
+ "version-file": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
21
22
  "lint": "eslint src --ext .js,.ts",
22
23
  "lint:fix": "eslint src --fix --ext .js,.ts",
23
- "prebuild": "rimraf dist",
24
+ "prebuild": "rimraf dist && yarn version-file",
24
25
  "prettier": "prettier --write \"src/**/*.{ts,tsx}\" \"*.{js,json}\"",
25
- "preversion": "npm-run-all --parallel typecheck lint test",
26
+ "preversion": "npm-run-all --parallel typecheck lint build test",
26
27
  "test": "jest --runInBand",
27
28
  "test:debug": "DEBUG=manuscripts-transform yarn test",
28
29
  "typecheck": "tsc --noEmit",