ultimate-jekyll-manager 0.0.169 → 0.0.171

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.
@@ -194,6 +194,7 @@ async function sendUserSignupMetadata(user, webManager) {
194
194
  // Make API call to send signup metadata
195
195
  const response = await authorizedFetch(serverApiURL, {
196
196
  method: 'POST',
197
+ response: 'json',
197
198
  body: {
198
199
  command: 'user:sign-up',
199
200
  payload: payload
@@ -72,6 +72,9 @@ export default function (Manager) {
72
72
 
73
73
  const response = await authorizedFetch(serverApiURL, {
74
74
  method: 'POST',
75
+ timeout: 60000,
76
+ response: 'json',
77
+ tries: 2,
75
78
  body: {
76
79
  command: 'user:create-custom-token',
77
80
  payload: {},
@@ -79,7 +82,7 @@ export default function (Manager) {
79
82
  });
80
83
 
81
84
  // Extract token from response
82
- const token = response?.data?.token;
85
+ const token = response?.token;
83
86
 
84
87
  if (!token) {
85
88
  throw new Error('No token received from server');
@@ -294,6 +294,12 @@ async function ensureCoreFiles() {
294
294
  function checkLocality() {
295
295
  const installedVersion = project.devDependencies[package.name];
296
296
 
297
+ // Check if installedVersion is truthy or throw error
298
+ if (!installedVersion) {
299
+ throw new Error(`No installed version of ${package.name} found in devDependencies.`);
300
+ }
301
+
302
+ // Log if local
297
303
  if (installedVersion.startsWith('file:')) {
298
304
  logger.warn(`⚠️⚠️⚠️ You are using the local version of ${package.name}. This WILL NOT WORK when published. ⚠️⚠️⚠️`);
299
305
  }
@@ -1,5 +1,7 @@
1
1
  # ========== Default Values ==========
2
- # ...
2
+ # Github Token
3
+ # Get token at: https://github.com/settings/tokens
4
+ GH_TOKEN=""
3
5
 
4
6
  # ========== Custom Values ==========
5
7
  # Add your custom environment variables below this line
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.169",
3
+ "version": "0.0.171",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -98,8 +98,8 @@
98
98
  "sass": "^1.97.0",
99
99
  "spellchecker": "^3.7.1",
100
100
  "through2": "^4.0.2",
101
- "web-manager": "^4.0.39",
102
- "webpack": "^5.103.0",
101
+ "web-manager": "^4.1.0",
102
+ "webpack": "^5.104.0",
103
103
  "wonderful-fetch": "^1.3.4",
104
104
  "wonderful-version": "^1.3.2",
105
105
  "yargs": "^17.7.2"