@sip-protocol/sdk 0.2.2 → 0.2.3
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/dist/browser.js +11 -2
- package/dist/browser.mjs +1 -1
- package/dist/chunk-NDGUWOOZ.mjs +10157 -0
- package/dist/index.d.mts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +11 -2
- package/dist/index.mjs +1 -1
- package/package.json +14 -14
- package/src/proofs/index.ts +1 -0
- package/src/proofs/mock.ts +33 -2
- package/LICENSE +0 -21
package/dist/browser.js
CHANGED
|
@@ -3145,16 +3145,25 @@ var MockProofProvider = class {
|
|
|
3145
3145
|
framework = "mock";
|
|
3146
3146
|
_isReady = false;
|
|
3147
3147
|
_warningShown = false;
|
|
3148
|
+
_silent;
|
|
3149
|
+
/**
|
|
3150
|
+
* Create a new MockProofProvider
|
|
3151
|
+
*
|
|
3152
|
+
* @param options - Configuration options
|
|
3153
|
+
*/
|
|
3154
|
+
constructor(options) {
|
|
3155
|
+
this._silent = options?.silent ?? false;
|
|
3156
|
+
}
|
|
3148
3157
|
get isReady() {
|
|
3149
3158
|
return this._isReady;
|
|
3150
3159
|
}
|
|
3151
3160
|
/**
|
|
3152
3161
|
* Initialize the mock provider
|
|
3153
3162
|
*
|
|
3154
|
-
* Logs a warning to console about mock usage.
|
|
3163
|
+
* Logs a warning to console about mock usage (unless silent mode is enabled).
|
|
3155
3164
|
*/
|
|
3156
3165
|
async initialize() {
|
|
3157
|
-
if (!this._warningShown) {
|
|
3166
|
+
if (!this._warningShown && !this._silent) {
|
|
3158
3167
|
console.warn(WARNING_MESSAGE);
|
|
3159
3168
|
this._warningShown = true;
|
|
3160
3169
|
}
|