@pgpmjs/ast 0.1.1 → 0.2.2
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.
|
@@ -8,7 +8,9 @@ import { parsePlanFileSimple } from '../plan';
|
|
|
8
8
|
export function parseControlFile(filePath, basePath) {
|
|
9
9
|
const { requires, version } = parseControlContent(readFileSync(filePath, 'utf-8'));
|
|
10
10
|
return {
|
|
11
|
-
|
|
11
|
+
// posix separators: this path is a portable identifier recorded in
|
|
12
|
+
// pgpm.json and plan metadata, not a filesystem path
|
|
13
|
+
path: dirname(relative(basePath, filePath)).replace(/\\/g, '/'),
|
|
12
14
|
requires,
|
|
13
15
|
version,
|
|
14
16
|
};
|
|
@@ -13,7 +13,9 @@ const plan_1 = require("../plan");
|
|
|
13
13
|
function parseControlFile(filePath, basePath) {
|
|
14
14
|
const { requires, version } = parseControlContent((0, fs_1.readFileSync)(filePath, 'utf-8'));
|
|
15
15
|
return {
|
|
16
|
-
|
|
16
|
+
// posix separators: this path is a portable identifier recorded in
|
|
17
|
+
// pgpm.json and plan metadata, not a filesystem path
|
|
18
|
+
path: (0, path_1.dirname)((0, path_1.relative)(basePath, filePath)).replace(/\\/g, '/'),
|
|
17
19
|
requires,
|
|
18
20
|
version,
|
|
19
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/ast",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM module AST — plan/control/SQL-header parsers and the lossless module read/write layer",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"makage": "^0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@pgpmjs/env": "^2.
|
|
45
|
-
"@pgpmjs/types": "^2.
|
|
44
|
+
"@pgpmjs/env": "^2.30.2",
|
|
45
|
+
"@pgpmjs/types": "^2.37.2"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "08741ce3a6897192c2dbc7d1da48b9f456ffb59f"
|
|
48
48
|
}
|