nextcloud-axios
Advanced tools
Comparing version 0.2.0 to 0.3.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var axios_1 = require("axios"); | ||
var nextcloud_auth_1 = require("nextcloud-auth"); | ||
var client = axios_1.default.create({ | ||
headers: { | ||
requesttoken: OC.requestToken | ||
requesttoken: nextcloud_auth_1.getRequestToken() | ||
} | ||
}); | ||
exports.default = client; |
import Axios, { AxiosInstance } from 'axios' | ||
import {getRequestToken} from 'nextcloud-auth' | ||
// TODO: properly abstract | ||
declare var OC: any | ||
const client: AxiosInstance = Axios.create({ | ||
headers: { | ||
requesttoken: OC.requestToken | ||
requesttoken: getRequestToken() | ||
} | ||
@@ -10,0 +8,0 @@ }) |
{ | ||
"name": "nextcloud-axios", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Axios client for Nextcloud", | ||
@@ -28,3 +28,4 @@ "main": "./dist/client.js", | ||
"dependencies": { | ||
"axios": "^0.19.0" | ||
"axios": "^0.19.0", | ||
"nextcloud-auth": "0.0.3" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37988
2
+ Addednextcloud-auth@0.0.3
+ Addedcore-js@3.39.0(transitive)
+ Addednextcloud-auth@0.0.3(transitive)