@agility/content-sync 1.1.7 → 1.1.8
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/dist/agility-sync-sdk.node.js +912 -8209
- package/package.json +6 -4
- package/src/sync-client.js +4 -2
- package/webpack.config.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agility/content-sync",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "JavaScript SDK for synchronizing content from Agility CMS",
|
|
5
5
|
"main": "dist/agility-sync-sdk.node.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,14 +17,16 @@
|
|
|
17
17
|
"contributors": [
|
|
18
18
|
"Joel Varty",
|
|
19
19
|
"James Vidler",
|
|
20
|
-
"Joshua Isaac"
|
|
20
|
+
"Joshua Isaac",
|
|
21
|
+
"Kevin Tran",
|
|
22
|
+
"Aaron Taylor"
|
|
21
23
|
],
|
|
22
24
|
"bugs": {
|
|
23
25
|
"url": "https://github.com/agility/agility-sync-sdk/issues"
|
|
24
26
|
},
|
|
25
27
|
"homepage": "https://github.com/agility/agility-sync-sdk#readme",
|
|
26
28
|
"dependencies": {
|
|
27
|
-
"@agility/content-fetch": "^
|
|
29
|
+
"@agility/content-fetch": "^2.0.8",
|
|
28
30
|
"dotenv": "^8.2.0",
|
|
29
31
|
"proper-lockfile": "^4.1.2"
|
|
30
32
|
},
|
|
@@ -43,4 +45,4 @@
|
|
|
43
45
|
"webpack": "^4.29.6",
|
|
44
46
|
"webpack-cli": "^3.2.3"
|
|
45
47
|
}
|
|
46
|
-
}
|
|
48
|
+
}
|
package/src/sync-client.js
CHANGED
|
@@ -24,6 +24,7 @@ function validateConfigParams(configParams) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const defaultConfig = {
|
|
27
|
+
region: null,
|
|
27
28
|
baseUrl: null,
|
|
28
29
|
isPreview: false,
|
|
29
30
|
guid: null,
|
|
@@ -54,7 +55,8 @@ function createSyncClient(userConfig) {
|
|
|
54
55
|
apiKey: config.apiKey,
|
|
55
56
|
isPreview: config.isPreview,
|
|
56
57
|
debug: config.debug,
|
|
57
|
-
baseUrl: config.baseUrl
|
|
58
|
+
baseUrl: config.baseUrl,
|
|
59
|
+
region: config.region
|
|
58
60
|
});
|
|
59
61
|
|
|
60
62
|
|
|
@@ -75,4 +77,4 @@ function createSyncClient(userConfig) {
|
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
export default { getSyncClient }
|
|
80
|
+
export default { getSyncClient }
|
package/webpack.config.js
CHANGED
|
@@ -23,6 +23,17 @@ const nodeConfig = {
|
|
|
23
23
|
test: /\.js$/,
|
|
24
24
|
exclude: /node_modules/,
|
|
25
25
|
use: ['babel-loader'],
|
|
26
|
+
},
|
|
27
|
+
// JavaScript
|
|
28
|
+
{
|
|
29
|
+
test: /\.js$/,
|
|
30
|
+
exclude: /node_modules\/(?!@agility\/content-fetch)/, // Transpile @agility/content-fetch
|
|
31
|
+
use: {
|
|
32
|
+
loader: 'babel-loader',
|
|
33
|
+
options: {
|
|
34
|
+
presets: ['@babel/preset-env'], // Ensure compatibility with modern syntax
|
|
35
|
+
}
|
|
36
|
+
}
|
|
26
37
|
}
|
|
27
38
|
]
|
|
28
39
|
},
|