seafile-js 0.2.224 → 0.2.226
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/.babelrc +1 -2
- package/jest.config.js +16 -0
- package/lib/seafile-api.js +155 -148
- package/package.json +1 -2
- package/readme.md +15 -8
package/.babelrc
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
// Set the corejs version we are using to avoid warnings in console
|
|
9
9
|
// This will need to change once we upgrade to corejs@3
|
|
10
10
|
"corejs": 3,
|
|
11
|
-
|
|
12
|
-
"modules": false,
|
|
11
|
+
"modules": "cjs",
|
|
13
12
|
// Exclude transforms that make all code slower
|
|
14
13
|
"exclude": ["transform-typeof-symbol"]
|
|
15
14
|
}
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
rootDir: path.resolve(__dirname, './'),
|
|
5
|
+
roots: ["<rootDir>/test/"],
|
|
6
|
+
testMatch: [ "<rootDir>/test/test.js"],
|
|
7
|
+
transform: {
|
|
8
|
+
"^.+\\.js$": "babel-jest"
|
|
9
|
+
},
|
|
10
|
+
transformIgnorePatterns: [
|
|
11
|
+
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$',
|
|
12
|
+
],
|
|
13
|
+
moduleNameMapper: {
|
|
14
|
+
'^axios$': require.resolve('axios'),
|
|
15
|
+
},
|
|
16
|
+
}
|