@or-sdk/identifiers 0.27.5 → 0.27.11-beta.4268.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.
- package/CHANGELOG.md +8 -0
- package/package.json +8 -8
- package/src/__tests__/identifiers.spec.ts +2 -2
- package/src/identifiers.ts +3 -3
- package/tsconfig.build.json +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.27.10](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/identifiers@0.27.5...@or-sdk/identifiers@0.27.10) (2026-08-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @or-sdk/identifiers
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.27.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/identifiers@0.27.4...@or-sdk/identifiers@0.27.5) (2026-07-01)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @or-sdk/identifiers
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/identifiers",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.11-beta.4268.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "
|
|
9
|
+
"build": "concurrently 'pnpm:build:*(!watch)'",
|
|
10
10
|
"build:cjs": "tsc --project tsconfig.json",
|
|
11
11
|
"build:esm": "tsc --project tsconfig.esm.json",
|
|
12
12
|
"build:types": "tsc --project tsconfig.types.json",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"test:watch": "vitest --watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@or-sdk/base": "
|
|
25
|
-
"@or-sdk/sdk-api": "
|
|
24
|
+
"@or-sdk/base": "workspace:^",
|
|
25
|
+
"@or-sdk/sdk-api": "workspace:^"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"concurrently": "
|
|
29
|
-
"typescript": "
|
|
28
|
+
"concurrently": "catalog:",
|
|
29
|
+
"typescript": "catalog:",
|
|
30
|
+
"vitest": "catalog:"
|
|
30
31
|
},
|
|
31
32
|
"publishConfig": {
|
|
32
33
|
"access": "public"
|
|
33
|
-
}
|
|
34
|
-
"gitHead": "851a468ace01b7f6d853881b1c168ef10aad5442"
|
|
34
|
+
}
|
|
35
35
|
}
|
|
@@ -32,7 +32,7 @@ describe('identifiers.Identifiers', () => {
|
|
|
32
32
|
} catch (error) {
|
|
33
33
|
const e = error as TokenIsMissedError;
|
|
34
34
|
expect(e.message).toBe(
|
|
35
|
-
new TokenIsMissedError().message
|
|
35
|
+
new TokenIsMissedError().message,
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -64,7 +64,7 @@ describe('identifiers.Identifiers', () => {
|
|
|
64
64
|
} catch (error) {
|
|
65
65
|
const e = error as SdkUrlOrDiscoveryUrlIsMissedError;
|
|
66
66
|
expect(e.message).toBe(
|
|
67
|
-
new SdkUrlOrDiscoveryUrlIsMissedError().message
|
|
67
|
+
new SdkUrlOrDiscoveryUrlIsMissedError().message,
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
});
|
package/src/identifiers.ts
CHANGED
|
@@ -166,7 +166,7 @@ export class Identifiers {
|
|
|
166
166
|
* @return List<ObtainableIdentifier>
|
|
167
167
|
*/
|
|
168
168
|
public async listObtainableIdentifiers(
|
|
169
|
-
params: ObtainableIdentifierRequestParams = {}
|
|
169
|
+
params: ObtainableIdentifierRequestParams = {},
|
|
170
170
|
): Promise<List<ObtainableIdentifier>> {
|
|
171
171
|
const result = await this._sdkApi.makeRequest<ObtainableIdentifier[]>({
|
|
172
172
|
method: 'GET',
|
|
@@ -209,7 +209,7 @@ export class Identifiers {
|
|
|
209
209
|
* ```
|
|
210
210
|
*/
|
|
211
211
|
public async buyIdentifier(
|
|
212
|
-
identifiers: ObtainableIdentifier | ObtainableIdentifier[]
|
|
212
|
+
identifiers: ObtainableIdentifier | ObtainableIdentifier[],
|
|
213
213
|
): Promise<BuyIdentifierResponse> {
|
|
214
214
|
const data = {
|
|
215
215
|
identifiers: Array.isArray(identifiers) ? identifiers : [identifiers],
|
|
@@ -236,7 +236,7 @@ export class Identifiers {
|
|
|
236
236
|
*/
|
|
237
237
|
public async createProvider(
|
|
238
238
|
provider: IdentifierProvider['name'],
|
|
239
|
-
settings: IdentifierProvider['settings'] = {}
|
|
239
|
+
settings: IdentifierProvider['settings'] = {},
|
|
240
240
|
): Promise<void> {
|
|
241
241
|
const data = {
|
|
242
242
|
provider,
|