evophp 1.0.21 → 1.0.22
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/new-plugin.js +2 -2
- package/package.json +1 -1
package/new-plugin.js
CHANGED
|
@@ -5,7 +5,7 @@ const path = require('path');
|
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
const axios = require('axios');
|
|
7
7
|
const helpersPath = path.resolve(__dirname, 'helpers.js');
|
|
8
|
-
const { readLineAsync,
|
|
8
|
+
const { readLineAsync, splitPluginName } = require(helpersPath);
|
|
9
9
|
|
|
10
10
|
(async () => {
|
|
11
11
|
try {
|
|
@@ -29,7 +29,7 @@ const { readLineAsync, splitpluginName } = require(helpersPath);
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// Validate name and split it into author and item name
|
|
32
|
-
const [author, pluginName] = await
|
|
32
|
+
const [author, pluginName] = await splitPluginName(name);
|
|
33
33
|
|
|
34
34
|
// Validate PAT by checking the authenticated user's username
|
|
35
35
|
const userData = await getUserData(gitHubToken);
|