drupal-auth-client
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -39,2 +39,3 @@ import type { Config, Options } from "./types"; | ||
declare const drupalAuthClient: <TAuth extends "client_credentials" | "password">(uri: string, type: TAuth, options: Options<TAuth>, config?: Config) => Promise<import("./types").OAuthPayload>; | ||
export { drupalAuthClient }; | ||
export default drupalAuthClient; |
@@ -42,2 +42,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.drupalAuthClient = void 0; | ||
var cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
@@ -132,3 +133,4 @@ var authHandlers_1 = require("./authHandlers"); | ||
}; | ||
exports.drupalAuthClient = drupalAuthClient; | ||
exports.default = drupalAuthClient; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "drupal-auth-client", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Drupal Auth Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,8 +9,10 @@ # Drupal Auth Client | ||
### import library | ||
### Importing library | ||
```javascript | ||
import drupalAuthClient from "drupal-auth-client" | ||
import { drupalAuthClient } from "drupal-auth-client" | ||
``` | ||
### Using `client_credentials` | ||
### Using `client_credentials` | ||
```javascript | ||
@@ -28,3 +30,4 @@ | ||
### Using `password` | ||
### Using `password` | ||
```javascript | ||
@@ -31,0 +34,0 @@ |
@@ -110,2 +110,4 @@ import fetch from "cross-fetch"; | ||
export default drupalAuthClient; | ||
export { drupalAuthClient }; | ||
export default drupalAuthClient; |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22990
481
48
0