@or-sdk/cards 0.21.1-addserviceurl.0 → 0.21.1
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/cjs/Cards.js +3 -3
- package/dist/esm/Cards.js +3 -3
- package/dist/types/types.d.ts +1 -1
- package/package.json +5 -5
- package/src/Cards.ts +3 -3
- package/src/types.ts +2 -2
package/dist/cjs/Cards.js
CHANGED
|
@@ -53,18 +53,18 @@ var constants_1 = require("./constants");
|
|
|
53
53
|
var tags_1 = require("@or-sdk/tags");
|
|
54
54
|
var Cards = (function () {
|
|
55
55
|
function Cards(params) {
|
|
56
|
-
var token = params.token, discoveryUrl = params.discoveryUrl, accountId = params.accountId,
|
|
56
|
+
var token = params.token, discoveryUrl = params.discoveryUrl, accountId = params.accountId, dataHubUrl = params.dataHubUrl;
|
|
57
57
|
this.dataHub = new data_hub_1.DataHub({
|
|
58
58
|
token: token,
|
|
59
59
|
discoveryUrl: discoveryUrl,
|
|
60
60
|
accountId: accountId,
|
|
61
|
-
|
|
61
|
+
dataHubUrl: dataHubUrl,
|
|
62
62
|
});
|
|
63
63
|
this.tags = new tags_1.Tags({
|
|
64
64
|
token: token,
|
|
65
65
|
discoveryUrl: discoveryUrl,
|
|
66
66
|
accountId: accountId,
|
|
67
|
-
|
|
67
|
+
dataHubUrl: dataHubUrl,
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
Cards.prototype.init = function () {
|
package/dist/esm/Cards.js
CHANGED
|
@@ -12,18 +12,18 @@ import { ENTITY_NAME, QUERY_LIST, QUERY_GET, QUERY_CREATE, QUERY_UPDATE, QUERY_D
|
|
|
12
12
|
import { Tags, filterTagIds, addTagsIds, removeTagIds } from '@or-sdk/tags';
|
|
13
13
|
export class Cards {
|
|
14
14
|
constructor(params) {
|
|
15
|
-
const { token, discoveryUrl, accountId,
|
|
15
|
+
const { token, discoveryUrl, accountId, dataHubUrl } = params;
|
|
16
16
|
this.dataHub = new DataHub({
|
|
17
17
|
token,
|
|
18
18
|
discoveryUrl,
|
|
19
19
|
accountId,
|
|
20
|
-
|
|
20
|
+
dataHubUrl,
|
|
21
21
|
});
|
|
22
22
|
this.tags = new Tags({
|
|
23
23
|
token,
|
|
24
24
|
discoveryUrl,
|
|
25
25
|
accountId,
|
|
26
|
-
|
|
26
|
+
dataHubUrl,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
init() {
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.21.1
|
|
2
|
+
"version": "0.21.1",
|
|
3
3
|
"name": "@or-sdk/cards",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@or-sdk/base": "^0.21.1
|
|
27
|
-
"@or-sdk/data-hub": "^0.21.1
|
|
28
|
-
"@or-sdk/tags": "^0.21.1
|
|
26
|
+
"@or-sdk/base": "^0.21.1",
|
|
27
|
+
"@or-sdk/data-hub": "^0.21.1",
|
|
28
|
+
"@or-sdk/tags": "^0.21.1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "1544180780673ca5c934deccbd6132a62c1204d1"
|
|
31
31
|
}
|
package/src/Cards.ts
CHANGED
|
@@ -33,19 +33,19 @@ export class Cards implements Taggable<Card> {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
constructor(params: CardsConfig) {
|
|
36
|
-
const { token, discoveryUrl, accountId,
|
|
36
|
+
const { token, discoveryUrl, accountId, dataHubUrl } = params;
|
|
37
37
|
|
|
38
38
|
this.dataHub = new DataHub({
|
|
39
39
|
token,
|
|
40
40
|
discoveryUrl,
|
|
41
41
|
accountId,
|
|
42
|
-
|
|
42
|
+
dataHubUrl,
|
|
43
43
|
});
|
|
44
44
|
this.tags = new Tags({
|
|
45
45
|
token,
|
|
46
46
|
discoveryUrl,
|
|
47
47
|
accountId,
|
|
48
|
-
|
|
48
|
+
dataHubUrl,
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
}
|
package/src/types.ts
CHANGED