@capgo/capacitor-autofill-save-password 7.2.2 → 7.2.4

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/README.md CHANGED
@@ -143,11 +143,11 @@ Get the native Capacitor plugin version.
143
143
 
144
144
  #### Options
145
145
 
146
- | Prop | Type | Description |
147
- | -------------- | ------------------- | -------------------------------------------------------------------------- |
148
- | **`username`** | <code>string</code> | The username to save. |
149
- | **`password`** | <code>string</code> | The password to save. |
150
- | **`url`** | <code>string</code> | The url to save the password for. (For example: "web.capgo.app") iOS only. |
146
+ | Prop | Type | Description |
147
+ | -------------- | ------------------- | ------------------------------------------------------------------------------ |
148
+ | **`username`** | <code>string</code> | The username to save. |
149
+ | **`password`** | <code>string</code> | The password to save. |
150
+ | **`url`** | <code>string</code> | The url to save the password for. (For example: "console.capgo.app") iOS only. |
151
151
 
152
152
 
153
153
  #### ReadPasswordResult
@@ -28,7 +28,7 @@ import java.util.Map;
28
28
  @CapacitorPlugin(name = "SavePassword")
29
29
  public class SavePasswordPlugin extends Plugin {
30
30
 
31
- private final String PLUGIN_VERSION = "7.2.2";
31
+ private final String pluginVersion = "7.2.4";
32
32
  private static final String TAG = "CredentialManager";
33
33
  private CredentialManager credentialManager;
34
34
  private Map<String, PendingGetCredentialRequest> pendingRequestsByElementId = new HashMap<>();
@@ -170,7 +170,7 @@ public class SavePasswordPlugin extends Plugin {
170
170
  public void getPluginVersion(final PluginCall call) {
171
171
  try {
172
172
  final JSObject ret = new JSObject();
173
- ret.put("version", this.PLUGIN_VERSION);
173
+ ret.put("version", this.pluginVersion);
174
174
  call.resolve(ret);
175
175
  } catch (final Exception e) {
176
176
  call.reject("Could not get plugin version", e);
package/dist/docs.json CHANGED
@@ -118,7 +118,7 @@
118
118
  {
119
119
  "name": "url",
120
120
  "tags": [],
121
- "docs": "The url to save the password for. (For example: \"web.capgo.app\")\niOS only.",
121
+ "docs": "The url to save the password for. (For example: \"console.capgo.app\")\niOS only.",
122
122
  "complexTypes": [],
123
123
  "type": "string | undefined"
124
124
  }
@@ -12,7 +12,7 @@ export interface Options {
12
12
  */
13
13
  password: string;
14
14
  /**
15
- * The url to save the password for. (For example: "web.capgo.app")
15
+ * The url to save the password for. (For example: "console.capgo.app")
16
16
  * iOS only.
17
17
  */
18
18
  url?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @interface Options\n * @description The options for the prompt.\n */\nexport interface Options {\n /**\n * The username to save.\n */\n username: string;\n /**\n * The password to save.\n */\n password: string;\n /**\n * The url to save the password for. (For example: \"web.capgo.app\")\n * iOS only.\n */\n url?: string;\n}\n\nexport interface ReadPasswordResult {\n /**\n * The username of the password.\n */\n username: string;\n /**\n * The password of the password.\n */\n password: string;\n}\n\n/**\n * @interface SavePasswordPlugin\n * @description Capacitor plugin for saving passwords to the keychain.\n */\nexport interface SavePasswordPlugin {\n /**\n * Save a password to the keychain.\n * @param {Options} options - The options for the password.\n * @returns {Promise<void>} Success status\n * @example\n * await SavePassword.promptDialog({\n * username: 'your-username',\n * password: 'your-password'\n * });\n */\n promptDialog(options: Options): Promise<void>;\n\n /**\n * Read a password from the keychain. Requires the developer to setup associated domain for the app for iOS.\n * @returns {Promise<ReadPasswordResult>} The retrieved password credentials\n */\n readPassword(): Promise<ReadPasswordResult>;\n\n /**\n * Get the native Capacitor plugin version.\n *\n * @returns Promise that resolves with the plugin version\n * @since 1.0.0\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @interface Options\n * @description The options for the prompt.\n */\nexport interface Options {\n /**\n * The username to save.\n */\n username: string;\n /**\n * The password to save.\n */\n password: string;\n /**\n * The url to save the password for. (For example: \"console.capgo.app\")\n * iOS only.\n */\n url?: string;\n}\n\nexport interface ReadPasswordResult {\n /**\n * The username of the password.\n */\n username: string;\n /**\n * The password of the password.\n */\n password: string;\n}\n\n/**\n * @interface SavePasswordPlugin\n * @description Capacitor plugin for saving passwords to the keychain.\n */\nexport interface SavePasswordPlugin {\n /**\n * Save a password to the keychain.\n * @param {Options} options - The options for the password.\n * @returns {Promise<void>} Success status\n * @example\n * await SavePassword.promptDialog({\n * username: 'your-username',\n * password: 'your-password'\n * });\n */\n promptDialog(options: Options): Promise<void>;\n\n /**\n * Read a password from the keychain. Requires the developer to setup associated domain for the app for iOS.\n * @returns {Promise<ReadPasswordResult>} The retrieved password credentials\n */\n readPassword(): Promise<ReadPasswordResult>;\n\n /**\n * Get the native Capacitor plugin version.\n *\n * @returns Promise that resolves with the plugin version\n * @since 1.0.0\n */\n getPluginVersion(): Promise<{ version: string }>;\n}\n"]}
@@ -9,7 +9,7 @@ import AuthenticationServices
9
9
  */
10
10
  @objc(SavePasswordPlugin)
11
11
  public class SavePasswordPlugin: CAPPlugin, CAPBridgedPlugin, ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding {
12
- private let PLUGIN_VERSION: String = "7.2.2"
12
+ private let pluginVersion: String = "7.2.4"
13
13
  public let identifier = "SavePasswordPlugin"
14
14
 
15
15
  public let jsName = "SavePassword"
@@ -101,6 +101,6 @@ public class SavePasswordPlugin: CAPPlugin, CAPBridgedPlugin, ASAuthorizationCon
101
101
  }
102
102
 
103
103
  @objc func getPluginVersion(_ call: CAPPluginCall) {
104
- call.resolve(["version": self.PLUGIN_VERSION])
104
+ call.resolve(["version": self.pluginVersion])
105
105
  }
106
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-autofill-save-password",
3
- "version": "7.2.2",
3
+ "version": "7.2.4",
4
4
  "description": "Prompt to display dialog for saving password to keychain from webview app",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",