@wireapp/api-client 20.4.0 → 20.5.0

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.
Files changed (196) hide show
  1. package/package.json +22 -22
  2. package/src/APIClient.d.ts +1 -1
  3. package/src/Config.d.ts +1 -1
  4. package/src/account/AccountAPI.d.ts +4 -4
  5. package/src/account/index.js +5 -1
  6. package/src/account/index.js.map +1 -1
  7. package/src/asset/AssetAPI.d.ts +1 -1
  8. package/src/asset/index.js +5 -1
  9. package/src/asset/index.js.map +1 -1
  10. package/src/auth/AccessTokenStore.d.ts +1 -1
  11. package/src/auth/AuthAPI.d.ts +6 -6
  12. package/src/auth/ClientPreKey.d.ts +1 -1
  13. package/src/auth/Context.d.ts +1 -1
  14. package/src/auth/CookieStore.d.ts +1 -1
  15. package/src/auth/LoginData.d.ts +1 -1
  16. package/src/auth/PreKeyBundle.d.ts +2 -2
  17. package/src/auth/RegisterData.d.ts +2 -2
  18. package/src/auth/SendLoginCode.d.ts +1 -1
  19. package/src/auth/index.js +5 -1
  20. package/src/auth/index.js.map +1 -1
  21. package/src/broadcast/BroadcastAPI.d.ts +2 -2
  22. package/src/broadcast/index.js +5 -1
  23. package/src/broadcast/index.js.map +1 -1
  24. package/src/client/ClientAPI.d.ts +2 -2
  25. package/src/client/NewClient.d.ts +2 -2
  26. package/src/client/PublicClient.d.ts +1 -1
  27. package/src/client/RegisteredClient.d.ts +1 -1
  28. package/src/client/index.js +5 -1
  29. package/src/client/index.js.map +1 -1
  30. package/src/connection/Connection.d.ts +1 -1
  31. package/src/connection/ConnectionAPI.d.ts +1 -1
  32. package/src/connection/ConnectionUpdate.d.ts +1 -1
  33. package/src/connection/UserConnectionList.d.ts +1 -1
  34. package/src/connection/index.js +5 -1
  35. package/src/connection/index.js.map +1 -1
  36. package/src/conversation/ClientMismatch.d.ts +1 -1
  37. package/src/conversation/Conversation.d.ts +3 -3
  38. package/src/conversation/ConversationAPI/ConversationAPI.d.ts +2 -2
  39. package/src/conversation/ConversationAPI/index.js +5 -1
  40. package/src/conversation/ConversationAPI/index.js.map +1 -1
  41. package/src/conversation/ConversationMembers.d.ts +1 -1
  42. package/src/conversation/Conversations.d.ts +1 -1
  43. package/src/conversation/Member.d.ts +1 -1
  44. package/src/conversation/NewConversation.d.ts +5 -5
  45. package/src/conversation/NewOTRMessage.d.ts +1 -1
  46. package/src/conversation/OTRRecipients.d.ts +1 -1
  47. package/src/conversation/OtherMember.d.ts +3 -3
  48. package/src/conversation/QualifiedConversationIds.d.ts +1 -1
  49. package/src/conversation/data/ConversationAccessUpdateData.d.ts +1 -1
  50. package/src/conversation/data/ConversationCodeUpdateData.d.ts +1 -1
  51. package/src/conversation/data/ConversationCreateData.d.ts +1 -1
  52. package/src/conversation/data/ConversationMemberUpdateData.d.ts +2 -2
  53. package/src/conversation/data/index.js +5 -1
  54. package/src/conversation/data/index.js.map +1 -1
  55. package/src/conversation/index.js +5 -1
  56. package/src/conversation/index.js.map +1 -1
  57. package/src/env/index.js +5 -1
  58. package/src/env/index.js.map +1 -1
  59. package/src/event/BackendEvent.d.ts +4 -4
  60. package/src/event/ConversationEvent.d.ts +1 -1
  61. package/src/event/TeamEvent.d.ts +1 -1
  62. package/src/event/UserEvent.d.ts +1 -1
  63. package/src/event/index.js +5 -1
  64. package/src/event/index.js.map +1 -1
  65. package/src/giphy/GiphyAPI.d.ts +3 -3
  66. package/src/giphy/GiphyResult.d.ts +1 -1
  67. package/src/giphy/index.js +5 -1
  68. package/src/giphy/index.js.map +1 -1
  69. package/src/http/BackendError.d.ts +2 -2
  70. package/src/http/HttpClient.js +5 -1
  71. package/src/http/HttpClient.js.map +1 -1
  72. package/src/http/RequestProgressHandler.d.ts +1 -1
  73. package/src/http/index.js +5 -1
  74. package/src/http/index.js.map +1 -1
  75. package/src/notification/Notification.d.ts +1 -1
  76. package/src/notification/NotificationAPI.d.ts +1 -1
  77. package/src/notification/NotificationList.d.ts +1 -1
  78. package/src/notification/index.js +5 -1
  79. package/src/notification/index.js.map +1 -1
  80. package/src/obfuscation/ObfuscationUtil.d.ts +2 -2
  81. package/src/obfuscation/index.js +5 -1
  82. package/src/obfuscation/index.js.map +1 -1
  83. package/src/self/Consent.d.ts +1 -1
  84. package/src/self/ConsentResults.d.ts +1 -1
  85. package/src/self/Self.d.ts +2 -2
  86. package/src/self/SelfAPI.d.ts +4 -4
  87. package/src/self/index.js +5 -1
  88. package/src/self/index.js.map +1 -1
  89. package/src/serviceProvider/LoginServiceProviderData.d.ts +1 -1
  90. package/src/serviceProvider/NewServiceProvider.d.ts +1 -1
  91. package/src/serviceProvider/ServiceProviderAPI.d.ts +6 -6
  92. package/src/serviceProvider/UpdateServiceProviderData.d.ts +1 -1
  93. package/src/serviceProvider/index.js +5 -1
  94. package/src/serviceProvider/index.js.map +1 -1
  95. package/src/services/Service.d.ts +5 -5
  96. package/src/services/ServicesAPI.d.ts +3 -3
  97. package/src/services/index.js +5 -1
  98. package/src/services/index.js.map +1 -1
  99. package/src/shims/browser/buffer.js +5 -1
  100. package/src/shims/browser/buffer.js.map +1 -1
  101. package/src/shims/browser/cookie.d.ts +3 -3
  102. package/src/shims/node/cookie.d.ts +2 -2
  103. package/src/tcp/ReconnectingWebsocket.js +5 -1
  104. package/src/tcp/ReconnectingWebsocket.js.map +1 -1
  105. package/src/tcp/WebSocketClient.d.ts +2 -2
  106. package/src/tcp/index.js +5 -1
  107. package/src/tcp/index.js.map +1 -1
  108. package/src/team/billing/BillingAPI.d.ts +1 -1
  109. package/src/team/billing/InvoiceData.d.ts +1 -1
  110. package/src/team/billing/InvoiceUpcomingData.d.ts +1 -1
  111. package/src/team/billing/index.js +5 -1
  112. package/src/team/billing/index.js.map +1 -1
  113. package/src/team/conversation/TeamConversationAPI.d.ts +3 -3
  114. package/src/team/conversation/index.js +5 -1
  115. package/src/team/conversation/index.js.map +1 -1
  116. package/src/team/data/TeamMemberUpdateData.d.ts +1 -1
  117. package/src/team/data/index.js +5 -1
  118. package/src/team/data/index.js.map +1 -1
  119. package/src/team/feature/FeatureAPI.d.ts +2 -2
  120. package/src/team/feature/FeatureList.d.ts +1 -1
  121. package/src/team/feature/index.js +5 -1
  122. package/src/team/feature/index.js.map +1 -1
  123. package/src/team/identityprovider/IdentityProviderAPI.d.ts +3 -3
  124. package/src/team/identityprovider/IdentityProviders.d.ts +1 -1
  125. package/src/team/identityprovider/index.js +5 -1
  126. package/src/team/identityprovider/index.js.map +1 -1
  127. package/src/team/index.js +5 -1
  128. package/src/team/index.js.map +1 -1
  129. package/src/team/invitation/NewTeamInvitation.d.ts +1 -1
  130. package/src/team/invitation/TeamInvitation.d.ts +1 -1
  131. package/src/team/invitation/TeamInvitationAPI.d.ts +1 -1
  132. package/src/team/invitation/TeamInvitationChunk.d.ts +1 -1
  133. package/src/team/invitation/index.js +5 -1
  134. package/src/team/invitation/index.js.map +1 -1
  135. package/src/team/legalhold/LegalHoldAPI.d.ts +4 -4
  136. package/src/team/legalhold/LegalHoldMemberStatus.d.ts +1 -1
  137. package/src/team/legalhold/index.js +5 -1
  138. package/src/team/legalhold/index.js.map +1 -1
  139. package/src/team/member/MemberAPI.d.ts +1 -1
  140. package/src/team/member/MemberData.d.ts +2 -2
  141. package/src/team/member/Members.d.ts +1 -1
  142. package/src/team/member/PermissionsData.d.ts +1 -1
  143. package/src/team/member/Role.d.ts +1 -1
  144. package/src/team/member/index.js +5 -1
  145. package/src/team/member/index.js.map +1 -1
  146. package/src/team/payment/InvoiceData.d.ts +1 -1
  147. package/src/team/payment/PaymentAPI.d.ts +2 -2
  148. package/src/team/payment/PaymentBillingData.d.ts +1 -1
  149. package/src/team/payment/PaymentData.d.ts +2 -2
  150. package/src/team/payment/PaymentDataUpdate.d.ts +1 -1
  151. package/src/team/payment/PaymentPlan.d.ts +1 -1
  152. package/src/team/payment/PaymentStripeCharge.d.ts +1 -1
  153. package/src/team/payment/PaymentStripeInvoice.d.ts +1 -1
  154. package/src/team/payment/PaymentStripeInvoices.d.ts +1 -1
  155. package/src/team/payment/PaymentStripePlan.d.ts +1 -1
  156. package/src/team/payment/index.js +5 -1
  157. package/src/team/payment/index.js.map +1 -1
  158. package/src/team/scim/ScimAPI.d.ts +1 -1
  159. package/src/team/scim/index.js +5 -1
  160. package/src/team/scim/index.js.map +1 -1
  161. package/src/team/search/TeamContact.d.ts +2 -2
  162. package/src/team/search/TeamSearchOptions.d.ts +1 -1
  163. package/src/team/search/TeamSearchResult.d.ts +1 -1
  164. package/src/team/search/index.js +5 -1
  165. package/src/team/search/index.js.map +1 -1
  166. package/src/team/service/Service.d.ts +1 -1
  167. package/src/team/service/ServiceAPI.d.ts +2 -2
  168. package/src/team/service/Services.d.ts +1 -1
  169. package/src/team/service/index.js +5 -1
  170. package/src/team/service/index.js.map +1 -1
  171. package/src/team/team/NewTeamData.d.ts +1 -1
  172. package/src/team/team/TeamAPI.d.ts +3 -3
  173. package/src/team/team/TeamChunkData.d.ts +1 -1
  174. package/src/team/team/TeamData.d.ts +1 -1
  175. package/src/team/team/index.js +5 -1
  176. package/src/team/team/index.js.map +1 -1
  177. package/src/user/Contact.d.ts +1 -1
  178. package/src/user/RTCConfiguration.d.ts +1 -1
  179. package/src/user/SearchResult.d.ts +1 -1
  180. package/src/user/User.d.ts +5 -5
  181. package/src/user/UserAPI.d.ts +6 -6
  182. package/src/user/UserPreKeyBundleMap.d.ts +1 -1
  183. package/src/user/UserUpdate.d.ts +1 -1
  184. package/src/user/data/UserActivateData.d.ts +1 -1
  185. package/src/user/data/UserClientAddData.d.ts +1 -1
  186. package/src/user/data/UserConnectionData.d.ts +1 -1
  187. package/src/user/data/UserLegalHoldRequestData.d.ts +1 -1
  188. package/src/user/data/UserPushRemoveData.d.ts +1 -1
  189. package/src/user/data/UserUpdateData.d.ts +1 -1
  190. package/src/user/data/index.js +5 -1
  191. package/src/user/data/index.js.map +1 -1
  192. package/src/user/index.js +5 -1
  193. package/src/user/index.js.map +1 -1
  194. package/src/validation/index.js +5 -1
  195. package/src/validation/index.js.map +1 -1
  196. package/CHANGELOG.md +0 -10188
package/package.json CHANGED
@@ -4,12 +4,9 @@
4
4
  "./src/shims/node/cookie": "./src/shims/browser/cookie.js"
5
5
  },
6
6
  "dependencies": {
7
- "@types/node": "~14",
8
- "@types/spark-md5": "3.0.2",
9
- "@types/tough-cookie": "4.0.1",
10
- "@wireapp/commons": "4.3.0",
11
- "@wireapp/priority-queue": "1.7.0",
12
- "@wireapp/protocol-messaging": "1.37.0",
7
+ "@wireapp/commons": "workspace:^",
8
+ "@wireapp/priority-queue": "workspace:^",
9
+ "@wireapp/protocol-messaging": "1.38.0",
13
10
  "axios": "0.21.4",
14
11
  "axios-retry": "3.1.9",
15
12
  "http-status-codes": "2.1.4",
@@ -27,11 +24,14 @@
27
24
  "@babel/preset-react": "7.14.5",
28
25
  "@babel/preset-typescript": "7.14.5",
29
26
  "@types/jasmine": "3.8.2",
30
- "@types/karma": "6.3.1",
27
+ "@types/karma": "6.3.3",
28
+ "@types/node": "^14.18.29",
29
+ "@types/spark-md5": "3.0.2",
30
+ "@types/tough-cookie": "4.0.1",
31
31
  "@types/ws": "7.4.7",
32
- "@wireapp/react-ui-kit": "8.13.8",
33
- "@wireapp/store-engine": "4.9.9",
34
- "@wireapp/store-engine-fs": "2.4.9",
32
+ "@wireapp/react-ui-kit": "workspace:^",
33
+ "@wireapp/store-engine": "workspace:^",
34
+ "@wireapp/store-engine-fs": "workspace:^",
35
35
  "babel-loader": "8.2.2",
36
36
  "browser-sync": "2.27.5",
37
37
  "concurrently": "6.2.0",
@@ -39,12 +39,12 @@
39
39
  "dotenv": "10.0.0",
40
40
  "istanbul": "1.1.0-alpha.1",
41
41
  "jasmine": "3.8.0",
42
- "karma": "6.3.16",
43
- "karma-chrome-launcher": "3.1.0",
44
- "karma-jasmine": "4.0.1",
42
+ "karma": "6.4.1",
43
+ "karma-chrome-launcher": "3.1.1",
44
+ "karma-jasmine": "4.0.2",
45
45
  "karma-jasmine-diff-reporter": "2.0.1",
46
46
  "karma-sourcemap-loader": "0.3.8",
47
- "karma-spec-reporter": "0.0.32",
47
+ "karma-spec-reporter": "0.0.34",
48
48
  "karma-webpack": "4.0.2",
49
49
  "nock": "13.1.1",
50
50
  "nyc": "15.1.0",
@@ -54,8 +54,8 @@
54
54
  "rimraf": "3.0.2",
55
55
  "sinon": "11.1.2",
56
56
  "sinon-har-server": "0.3.0",
57
- "ts-node": "9.1.1",
58
- "typescript": "4.4.2",
57
+ "ts-node": "^10.9.1",
58
+ "typescript": "4.8.3",
59
59
  "webpack": "4.46.0",
60
60
  "webpack-cli": "4.7.2",
61
61
  "webpack-dev-server": "3.11.2",
@@ -78,18 +78,18 @@
78
78
  "build:node": "tsc",
79
79
  "clean": "rimraf \"src/**/*.{js?(.map),d.ts}\"",
80
80
  "coverage": "istanbul cover --report html ./node_modules/jasmine/bin/jasmine.js",
81
- "demo:http401": "cross-env NODE_DEBUG=@wireapp/api-client* ts-node src/demo/http401.ts",
82
- "demo:self": "cross-env NODE_DEBUG=@wireapp/api-client* ts-node src/demo/self.ts",
81
+ "demo:http401": "cross-env NODE_DEBUG='@wireapp/api-client*' ts-node src/demo/http401.ts",
82
+ "demo:self": "cross-env NODE_DEBUG='@wireapp/api-client*' ts-node src/demo/self.ts",
83
83
  "dist": "yarn clean && yarn build",
84
84
  "start": "yarn build:node && concurrently \"tsc -w\" \"webpack -w\" \"browser-sync start -c bs-config.js\"",
85
- "start:node": "cross-env NODE_DEBUG=@wireapp* node --inspect -r ts-node/register demo.ts",
85
+ "start:node": "cross-env NODE_DEBUG='@wireapp*' node --inspect -r ts-node/register demo.ts",
86
86
  "test": "yarn test:node && yarn test:browser",
87
87
  "test:browser": "karma start",
88
- "test:node": "cross-env NODE_DEBUG=@wireapp/api-client* nyc jasmine --config=jasmine.json",
88
+ "test:node": "cross-env NODE_DEBUG='@wireapp/api-client*' nyc jasmine --config=jasmine.json",
89
89
  "test:project": "yarn dist && yarn test",
90
90
  "test:types": "tsc --noEmit",
91
91
  "watch": "webpack serve --config webpack.browser.js"
92
92
  },
93
- "version": "20.4.0",
94
- "gitHead": "42fe05962dfbaaaabc58eedc4213a29200c988e8"
93
+ "version": "20.5.0",
94
+ "gitHead": "a23001a062060cec72d2e3687e381c8ae6ca31a7"
95
95
  }
@@ -16,7 +16,7 @@ import { ServiceProviderAPI } from './serviceProvider';
16
16
  import { ServicesAPI } from './services';
17
17
  import { FeatureAPI, IdentityProviderAPI, LegalHoldAPI, MemberAPI, PaymentAPI, BillingAPI, ServiceAPI, TeamAPI, TeamConversationAPI, TeamInvitationAPI } from './team/';
18
18
  import { UserAPI } from './user/';
19
- import type { Config } from './Config';
19
+ import { Config } from './Config';
20
20
  import { TeamSearchAPI } from './team/search';
21
21
  import { ScimAPI } from './team/scim/ScimAPI';
22
22
  declare enum TOPIC {
package/src/Config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BackendData } from './env/';
1
+ import { BackendData } from './env/';
2
2
  export interface Config {
3
3
  urls: BackendData;
4
4
  }
@@ -1,8 +1,8 @@
1
1
  import { HttpClient } from '../http';
2
- import type { BackendConfigData } from './BackendConfigData';
3
- import type { CallConfigData } from './CallConfigData';
4
- import type { DomainData } from './DomainData';
5
- import type { SSOSettings } from './SSOSettings';
2
+ import { BackendConfigData } from './BackendConfigData';
3
+ import { CallConfigData } from './CallConfigData';
4
+ import { DomainData } from './DomainData';
5
+ import { SSOSettings } from './SSOSettings';
6
6
  export declare class AccountAPI {
7
7
  private readonly client;
8
8
  constructor(client: HttpClient);
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,sDAAoC;AACpC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,sDAAoC;AACpC,mDAAiC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { AssetRetentionPolicy } from './AssetRetentionPolicy';
3
3
  import { HttpClient, ProgressCallback, RequestCancelable } from '../http/';
4
- import type { AssetUploadData } from './AssetUploadData';
4
+ import { AssetUploadData } from './AssetUploadData';
5
5
  import { BackendFeatures } from '../APIClient';
6
6
  export interface CipherOptions {
7
7
  /** Set a custom algorithm for encryption */
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,yDAAuC;AACvC,oDAAkC;AAClC,8CAA4B"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import type { AccessTokenData } from '../auth/';
3
+ import { AccessTokenData } from '../auth/';
4
4
  declare enum TOPIC {
5
5
  ACCESS_TOKEN_REFRESH = "AccessTokenStore.TOPIC.ACCESS_TOKEN_REFRESH"
6
6
  }
@@ -1,10 +1,10 @@
1
- import type { AxiosResponse } from 'axios';
1
+ import { AxiosResponse } from 'axios';
2
2
  import { HttpClient } from '../http/';
3
- import type { AccessTokenData, LoginData, SendLoginCode } from '../auth/';
4
- import type { CookieList } from './CookieList';
5
- import type { LoginCodeResponse } from './LoginCodeResponse';
6
- import type { RegisterData } from './RegisterData';
7
- import type { User } from '../user/';
3
+ import { AccessTokenData, LoginData, SendLoginCode } from '../auth/';
4
+ import { CookieList } from './CookieList';
5
+ import { LoginCodeResponse } from './LoginCodeResponse';
6
+ import { RegisterData } from './RegisterData';
7
+ import { User } from '../user/';
8
8
  export declare class AuthAPI {
9
9
  private readonly client;
10
10
  constructor(client: HttpClient);
@@ -1,4 +1,4 @@
1
- import type { PreKey } from '../auth/';
1
+ import { PreKey } from '../auth/';
2
2
  export interface ClientPreKey {
3
3
  /** The client ID */
4
4
  client: string;
@@ -1,4 +1,4 @@
1
- import type { ClientType } from '../client/';
1
+ import { ClientType } from '../client/';
2
2
  export interface Context {
3
3
  clientId?: string;
4
4
  clientType: ClientType;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import type { Cookie } from './Cookie';
3
+ import { Cookie } from './Cookie';
4
4
  declare enum TOPIC {
5
5
  COOKIE_REFRESH = "CookieStore.TOPIC.COOKIE_REFRESH"
6
6
  }
@@ -1,4 +1,4 @@
1
- import type { ClientType } from '../client/';
1
+ import { ClientType } from '../client/';
2
2
  export interface LoginData {
3
3
  clientType: ClientType;
4
4
  code?: string;
@@ -1,5 +1,5 @@
1
- import type { ClientPreKey } from '../auth/';
2
- import type { QualifiedId } from '../user';
1
+ import { ClientPreKey } from '../auth/';
2
+ import { QualifiedId } from '../user';
3
3
  export interface PreKeyBundleBase {
4
4
  /** PreKeys of all clients */
5
5
  clients: ClientPreKey[];
@@ -1,5 +1,5 @@
1
- import type { TeamData } from '../team/team/TeamData';
2
- import type { User } from '../user/';
1
+ import { TeamData } from '../team/team/TeamData';
2
+ import { User } from '../user/';
3
3
  export declare type RegisterData = Pick<User, 'accent_id' | 'assets' | 'email' | 'name'> & {
4
4
  /** Email activation code */
5
5
  email_code?: string;
@@ -1,4 +1,4 @@
1
- import type { SendActivationCode } from '../user';
1
+ import { SendActivationCode } from '../user';
2
2
  export declare type SendLoginCode = Partial<Pick<SendActivationCode, 'phone' | 'voice_call'>> & {
3
3
  /** Forces validation via SMS/voice call code */
4
4
  force?: boolean;
package/src/auth/index.js CHANGED
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;AAEU,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAEhD,oDAAkC;AAClC,qDAAmC;AACnC,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,gDAA8B;AAC9B,sDAAoC;AACpC,8CAA4B;AAC5B,2CAAyB;AACzB,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;AAEU,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAEhD,oDAAkC;AAClC,qDAAmC;AACnC,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,gDAA8B;AAC9B,sDAAoC;AACpC,8CAA4B;AAC5B,2CAAyB;AACzB,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC"}
@@ -1,6 +1,6 @@
1
1
  import { proteus as ProtobufOTR } from '@wireapp/protocol-messaging/web/otr';
2
- import type { ClientMismatch, MessageSendingStatus, NewOTRMessage } from '../conversation/';
3
- import type { HttpClient } from '../http/';
2
+ import { ClientMismatch, MessageSendingStatus, NewOTRMessage } from '../conversation/';
3
+ import { HttpClient } from '../http/';
4
4
  export declare class BroadcastAPI {
5
5
  private readonly client;
6
6
  constructor(client: HttpClient);
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,iDAA+B"}
@@ -1,5 +1,5 @@
1
- import type { PreKeyBundle } from '../auth/';
2
- import type { CreateClientPayload, RegisteredClient, UpdateClientPayload } from '../client/';
1
+ import { PreKeyBundle } from '../auth/';
2
+ import { CreateClientPayload, RegisteredClient, UpdateClientPayload } from '../client/';
3
3
  import { HttpClient } from '../http/';
4
4
  import { ClientCapabilityData } from './ClientCapabilityData';
5
5
  declare type ClaimedKeyPackages = {
@@ -1,5 +1,5 @@
1
- import type { PreKey } from '../auth/';
2
- import type { ClientClassification, ClientType, Location } from './';
1
+ import { PreKey } from '../auth/';
2
+ import { ClientClassification, ClientType, Location } from './';
3
3
  import { ClientCapabilityData } from './ClientCapabilityData';
4
4
  declare type BaseUpdatePayload = ClientCapabilityData & {
5
5
  label?: string;
@@ -1,4 +1,4 @@
1
- import type { ClientClassification } from './ClientClassification';
1
+ import { ClientClassification } from './ClientClassification';
2
2
  export interface PublicClient {
3
3
  class: ClientClassification;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { ClientType, Location, PublicClient } from './';
1
+ import { ClientType, Location, PublicClient } from './';
2
2
  export interface AddedClient extends PublicClient {
3
3
  /** The IP address from which the client was registered */
4
4
  address?: string;
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,qDAAmC;AACnC,yDAAuC;AACvC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,iDAA+B;AAC/B,2DAAyC;AACzC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,qDAAmC;AACnC,yDAAuC;AACvC,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,8CAA4B;AAC5B,iDAA+B;AAC/B,2DAAyC;AACzC,qDAAmC"}
@@ -1,4 +1,4 @@
1
- import type { ConnectionStatus } from '../connection/';
1
+ import { ConnectionStatus } from '../connection/';
2
2
  import { QualifiedId } from '../user';
3
3
  export interface Connection {
4
4
  conversation: string;
@@ -1,5 +1,5 @@
1
1
  import { BackendFeatures } from '../APIClient';
2
- import type { Connection, ConnectionUpdate, UserConnectionList } from '../connection/';
2
+ import { Connection, ConnectionUpdate, UserConnectionList } from '../connection/';
3
3
  import { HttpClient } from '../http/';
4
4
  import { QualifiedId } from '../user';
5
5
  export declare class ConnectionAPI {
@@ -1,4 +1,4 @@
1
- import type { ConnectionStatus } from '../connection/';
1
+ import { ConnectionStatus } from '../connection/';
2
2
  export interface ConnectionUpdate {
3
3
  status: ConnectionStatus;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { Connection } from '../connection/';
1
+ import { Connection } from '../connection/';
2
2
  export interface UserConnectionList {
3
3
  connections: Connection[];
4
4
  has_more: boolean;
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,oDAAkC"}
@@ -1,4 +1,4 @@
1
- import type { UserClients } from './';
1
+ import { UserClients } from './';
2
2
  export interface ClientMismatch {
3
3
  deleted: UserClients;
4
4
  missing: UserClients;
@@ -1,6 +1,6 @@
1
- import type { ConversationMembers, ConversationProtocol } from './';
2
- import type { QualifiedId } from '../user';
3
- import type { RECEIPT_MODE } from './data';
1
+ import { ConversationMembers, ConversationProtocol } from './';
2
+ import { QualifiedId } from '../user';
3
+ import { RECEIPT_MODE } from './data';
4
4
  export declare enum CONVERSATION_TYPE {
5
5
  REGULAR = 0,
6
6
  SELF = 1,
@@ -1,8 +1,8 @@
1
1
  import { proteus as ProtobufOTR } from '@wireapp/protocol-messaging/web/otr';
2
2
  import { ClientMismatch, Conversation, ConversationCode, ConversationIds, ConversationRolesList, Conversations, Invite, Member, MessageSendingStatus, NewConversation, NewOTRMessage, RemoteConversations } from '..';
3
- import type { ConversationAccessUpdateEvent, ConversationCodeDeleteEvent, ConversationCodeUpdateEvent, ConversationEvent, ConversationMemberJoinEvent, ConversationMemberLeaveEvent, ConversationMessageTimerUpdateEvent, ConversationReceiptModeUpdateEvent, ConversationRenameEvent } from '../../event';
3
+ import { ConversationAccessUpdateEvent, ConversationCodeDeleteEvent, ConversationCodeUpdateEvent, ConversationEvent, ConversationMemberJoinEvent, ConversationMemberLeaveEvent, ConversationMessageTimerUpdateEvent, ConversationReceiptModeUpdateEvent, ConversationRenameEvent } from '../../event';
4
4
  import { HttpClient } from '../../http';
5
- import type { ConversationAccessUpdateData, ConversationAccessV2UpdateData, ConversationJoinData, ConversationMemberUpdateData, ConversationMessageTimerUpdateData, ConversationNameUpdateData, ConversationOtherMemberUpdateData, ConversationReceiptModeUpdateData, ConversationTypingData } from '../data';
5
+ import { ConversationAccessUpdateData, ConversationAccessV2UpdateData, ConversationJoinData, ConversationMemberUpdateData, ConversationMessageTimerUpdateData, ConversationNameUpdateData, ConversationOtherMemberUpdateData, ConversationReceiptModeUpdateData, ConversationTypingData } from '../data';
6
6
  import { QualifiedId } from '../../user';
7
7
  import { BackendFeatures } from '../../APIClient';
8
8
  import { MlsEvent } from '../data/MlsEventData';
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,oDAAkC"}
@@ -1,4 +1,4 @@
1
- import type { Member, OtherMember } from './';
1
+ import { Member, OtherMember } from './';
2
2
  export interface ConversationMembers {
3
3
  others: OtherMember[];
4
4
  self: Member;
@@ -1,4 +1,4 @@
1
- import type { Conversation } from './';
1
+ import { Conversation } from './';
2
2
  export interface Conversations {
3
3
  conversations: Conversation[];
4
4
  has_more: boolean;
@@ -1,5 +1,5 @@
1
1
  import { QualifiedId } from '../user';
2
- import type { DefaultConversationRoleName, MutedStatus, ServiceRef } from './';
2
+ import { DefaultConversationRoleName, MutedStatus, ServiceRef } from './';
3
3
  export interface Member {
4
4
  /**
5
5
  * Role name, between 2 and 128 chars, 'wire_' prefix is reserved for
@@ -1,8 +1,8 @@
1
- import type { TeamInfo } from '../team/';
2
- import type { QualifiedId } from '../user/';
3
- import type { Conversation } from './Conversation';
4
- import type { DefaultConversationRoleName } from './ConversationRole';
5
- import type { RECEIPT_MODE } from './data/ConversationReceiptModeUpdateData';
1
+ import { TeamInfo } from '../team/';
2
+ import { QualifiedId } from '../user/';
3
+ import { Conversation } from './Conversation';
4
+ import { DefaultConversationRoleName } from './ConversationRole';
5
+ import { RECEIPT_MODE } from './data/ConversationReceiptModeUpdateData';
6
6
  export declare enum ConversationProtocol {
7
7
  MLS = "mls",
8
8
  PROTEUS = "proteus"
@@ -1,4 +1,4 @@
1
- import type { OTRRecipients } from './';
1
+ import { OTRRecipients } from './';
2
2
  export interface NewOTRMessage<T extends string | Uint8Array> {
3
3
  /** Extra (symmetric) data (i.e. ciphertext) that is replicated for each recipient. */
4
4
  data?: T;
@@ -1,4 +1,4 @@
1
- import type { OTRClientMap } from './';
1
+ import { OTRClientMap } from './';
2
2
  export interface OTRRecipients<T extends string | Uint8Array> {
3
3
  [userId: string]: OTRClientMap<T>;
4
4
  }
@@ -1,6 +1,6 @@
1
- import type { ConversationOtherMemberUpdateData } from './data';
2
- import type { ServiceRef } from './';
3
- import type { QualifiedId } from '../user/QualifiedId';
1
+ import { ConversationOtherMemberUpdateData } from './data';
2
+ import { ServiceRef } from './';
3
+ import { QualifiedId } from '../user/QualifiedId';
4
4
  export interface OtherMember extends Partial<ConversationOtherMemberUpdateData> {
5
5
  /** The user ID. */
6
6
  id: string;
@@ -1,4 +1,4 @@
1
- import type { QualifiedId } from '../user/QualifiedId';
1
+ import { QualifiedId } from '../user/QualifiedId';
2
2
  export interface QualifiedConversationIds {
3
3
  qualified_conversations: QualifiedId[];
4
4
  has_more: boolean;
@@ -1,4 +1,4 @@
1
- import type { ACCESS_ROLE_V2, CONVERSATION_ACCESS, CONVERSATION_ACCESS_ROLE } from '../Conversation';
1
+ import { ACCESS_ROLE_V2, CONVERSATION_ACCESS, CONVERSATION_ACCESS_ROLE } from '../Conversation';
2
2
  /**@deprecated */
3
3
  export interface ConversationAccessUpdateData {
4
4
  access: CONVERSATION_ACCESS[];
@@ -1,2 +1,2 @@
1
- import type { ConversationCode } from '../ConversationCode';
1
+ import { ConversationCode } from '../ConversationCode';
2
2
  export declare type ConversationCodeUpdateData = Required<ConversationCode>;
@@ -1,4 +1,4 @@
1
- import type { Conversation } from '../Conversation';
1
+ import { Conversation } from '../Conversation';
2
2
  export interface ConversationCreateData extends Conversation {
3
3
  /** @deprecated */
4
4
  last_event: string;
@@ -1,5 +1,5 @@
1
- import type { MutedStatus } from '../MutedStatus';
2
- import type { DefaultConversationRoleName } from '../ConversationRole';
1
+ import { MutedStatus } from '../MutedStatus';
2
+ import { DefaultConversationRoleName } from '../ConversationRole';
3
3
  import { QualifiedId } from '../../user';
4
4
  export interface ConversationMemberUpdateData extends Partial<ConversationOtherMemberUpdateData> {
5
5
  /** The userId concerned by this update */
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,yDAAuC;AACvC,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,iEAA+C;AAC/C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,yDAAuC;AACvC,+DAA6C;AAC7C,gEAA8C;AAC9C,iEAA+C;AAC/C,uEAAqD;AACrD,+DAA6C;AAC7C,kEAAgD;AAChD,+DAA6C;AAC7C,kEAAgD;AAChD,sEAAoD;AACpD,2DAAyC;AACzC,2DAAyC"}
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,mDAAiC;AACjC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,oDAAkC;AAClC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,2CAAyB;AACzB,2CAAyB;AACzB,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,6DAA2C;AAC3C,wDAAsC;AACtC,+CAA6B;AAC7B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,sDAAoC;AACpC,oDAAkC;AAClC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,2CAAyB;AACzB,2CAAyB;AACzB,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC;AACvC,6DAA2C;AAC3C,wDAAsC;AACtC,+CAA6B;AAC7B,gDAA8B"}
package/src/env/index.js CHANGED
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];