ultimate-jekyll-manager 0.0.202 → 0.0.203
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.
|
@@ -25,7 +25,7 @@ export async function authorizedFetch(url, options = {}) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// Get the ID token - let it throw if it fails
|
|
28
|
-
const idToken = await user.getIdToken();
|
|
28
|
+
const idToken = await user.getIdToken(true);
|
|
29
29
|
|
|
30
30
|
// Ensure headers object exists
|
|
31
31
|
if (!requestOptions.headers) {
|
|
@@ -33,7 +33,7 @@ export async function authorizedFetch(url, options = {}) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// Set the Authorization header with Bearer token
|
|
36
|
-
requestOptions.headers['Authorization'] =
|
|
36
|
+
requestOptions.headers['Authorization'] = `Bearer ${idToken}`;
|
|
37
37
|
|
|
38
38
|
// Make the request using wonderful-fetch
|
|
39
39
|
return fetch(url, requestOptions);
|
|
@@ -7,7 +7,7 @@ const path = require('path');
|
|
|
7
7
|
const jetpack = require('fs-jetpack');
|
|
8
8
|
const wp = require('webpack');
|
|
9
9
|
const ReplacePlugin = require('../plugins/webpack/replace.js');
|
|
10
|
-
const stripDevBlocksLoader = require.resolve('../loaders/webpack/strip-dev-blocks
|
|
10
|
+
const stripDevBlocksLoader = require.resolve('../loaders/webpack/strip-dev-blocks.js');
|
|
11
11
|
const yaml = require('js-yaml');
|
|
12
12
|
const version = require('wonderful-version');
|
|
13
13
|
|
package/package.json
CHANGED
|
File without changes
|