@icure/cardinal-sdk 2.0.0-PREVIEW-20 → 2.0.0-PREVIEW-21

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.
@@ -48,6 +48,12 @@ if (typeof Math.clz32 === 'undefined') {
48
48
  };
49
49
  }(Math.log, Math.LN2);
50
50
  }
51
+ if (typeof String.prototype.startsWith === 'undefined') {
52
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
53
+ position = position || 0;
54
+ return this.lastIndexOf(searchString, position) === position;
55
+ }});
56
+ }
51
57
  if (typeof String.prototype.endsWith === 'undefined') {
52
58
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
53
59
  var subjectString = this.toString();
@@ -59,12 +65,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
59
65
  return lastIndex !== -1 && lastIndex === position;
60
66
  }});
61
67
  }
62
- if (typeof String.prototype.startsWith === 'undefined') {
63
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
64
- position = position || 0;
65
- return this.lastIndexOf(searchString, position) === position;
66
- }});
67
- }
68
68
  //endregion
69
69
  //region block: imports
70
70
  var imul_0 = Math.imul;
@@ -30,16 +30,6 @@ export interface SdkOptions {
30
30
  * Service for encryption primitives.
31
31
  */
32
32
  readonly cryptoService?: PartialXCryptoService;
33
- /**
34
- * If true (default) the password of the user will be salted together with the application id before sending it to
35
- * the iCure backend for login or when changing the user password.
36
- * This is done in addition to the server-side salting of the password before storing them.
37
- *
38
- * By enabling this option iCure never gets access to the plain text password of users.
39
- * Note that changing this value in a second moment requires also modifying the password of the user on the iCure
40
- * databases to reflect the change.
41
- */
42
- readonly saltPasswordWithApplicationId?: boolean;
43
33
  /**
44
34
  * An instance of iCure SDK is initialized for working as a specific user in a single group.
45
35
  * However, the user credentials may match multiple users in different groups (but at most one per group).
@@ -93,16 +83,6 @@ export interface BasicSdkOptions {
93
83
  * Service for encryption primitives.
94
84
  */
95
85
  readonly cryptoService?: PartialXCryptoService;
96
- /**
97
- * If true (default) the password of the user will be salted together with the application id before sending it to
98
- * the iCure backend for login or when changing the user password.
99
- * This is done in addition to the server-side salting of the password before storing them.
100
- *
101
- * By enabling this option iCure never gets access to the plain text password of users.
102
- * Note that changing this value in a second moment requires also modifying the password of the user on the iCure
103
- * databases to reflect the change.
104
- */
105
- readonly saltPasswordWithApplicationId?: boolean;
106
86
  /**
107
87
  * An instance of iCure SDK is initialized for working as a specific user in a single group.
108
88
  * However, the user credentials may match multiple users in different groups (but at most one per group).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/cardinal-sdk",
3
- "version": "2.0.0-PREVIEW-20",
3
+ "version": "2.0.0-PREVIEW-21",
4
4
  "main": "cardinal-sdk-ts.mjs",
5
5
  "types": "cardinal-sdk-ts.d.mts",
6
6
  "devDependencies": {