@johnbillion/plugin-infrastructure 2.5.4 → 2.7.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/README.md
CHANGED
|
@@ -114,6 +114,7 @@ Plugins that use this library all use a similar setup in their workflows:
|
|
|
114
114
|
* Uses `reusable-verify-distribution.yml`
|
|
115
115
|
* Verifies the provenance of the plugin on WordPress.org
|
|
116
116
|
* Verifies the `api.wordpress.org` response for the plugin info
|
|
117
|
+
* Verifies the PLC DID, its full log, its FAIR service endpoint, and its FAIR metadata
|
|
117
118
|
* Fetches and updates the DID PLC log
|
|
118
119
|
|
|
119
120
|
## Licence
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.GlobalUtils = void 0;
|
|
4
|
-
class GlobalUtils {
|
|
1
|
+
import { execSync } from 'child_process';
|
|
2
|
+
export class GlobalUtils {
|
|
5
3
|
constructor(options) {
|
|
6
4
|
this.baseURL = options.baseURL;
|
|
7
5
|
this.pluginSlug = options.pluginSlug;
|
|
@@ -12,7 +10,6 @@ class GlobalUtils {
|
|
|
12
10
|
* @throws Error if the command fails
|
|
13
11
|
*/
|
|
14
12
|
runWPCLICommand(command) {
|
|
15
|
-
const { execSync } = require('child_process');
|
|
16
13
|
const fullCommand = `docker compose exec --user wp_php wpcli wp --url="${this.baseURL}" ${command}`;
|
|
17
14
|
try {
|
|
18
15
|
const stdout = execSync(fullCommand, { encoding: 'utf8', cwd: process.cwd() });
|
|
@@ -48,4 +45,3 @@ class GlobalUtils {
|
|
|
48
45
|
return currentVersion >= minVersion;
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
|
-
exports.GlobalUtils = GlobalUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GlobalUtils, GlobalUtilsOptions } from './global-utils';
|
|
1
|
+
export { GlobalUtils, GlobalUtilsOptions } from './global-utils.js';
|
package/dist/acceptance/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GlobalUtils = void 0;
|
|
4
|
-
var global_utils_1 = require("./global-utils");
|
|
5
|
-
Object.defineProperty(exports, "GlobalUtils", { enumerable: true, get: function () { return global_utils_1.GlobalUtils; } });
|
|
1
|
+
export { GlobalUtils } from './global-utils.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnbillion/plugin-infrastructure",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Shared utilities for WordPress plugin development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "John Blackbourn",
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
"url": "git+https://github.com/johnbillion/plugin-infrastructure.git"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://github.com/johnbillion/plugin-infrastructure",
|
|
12
|
+
"type": "module",
|
|
12
13
|
"exports": {
|
|
13
14
|
"./acceptance": {
|
|
14
|
-
"
|
|
15
|
+
"import": "./dist/acceptance/index.js",
|
|
15
16
|
"types": "./dist/acceptance/index.d.ts"
|
|
16
17
|
}
|
|
17
18
|
},
|