@learncard/network-plugin 1.8.1 → 1.8.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/lcn-plugin.cjs.development.js +7 -2
- package/dist/lcn-plugin.cjs.development.js.map +2 -2
- package/dist/lcn-plugin.cjs.production.min.js +1 -1
- package/dist/lcn-plugin.cjs.production.min.js.map +2 -2
- package/dist/lcn-plugin.esm.js +7 -2
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -5464,11 +5464,16 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
5464
5464
|
throw new Error("Please make an account first!");
|
|
5465
5465
|
return client.boost.getBoost.query({ uri });
|
|
5466
5466
|
},
|
|
5467
|
-
getBoosts: async (_learnCard) => {
|
|
5467
|
+
getBoosts: async (_learnCard, query) => {
|
|
5468
5468
|
console.warn("The getBoosts method is deprecated! Please use getPaginatedBoosts instead!");
|
|
5469
5469
|
if (!userData)
|
|
5470
5470
|
throw new Error("Please make an account first!");
|
|
5471
|
-
return client.boost.getBoosts.query();
|
|
5471
|
+
return client.boost.getBoosts.query({ query });
|
|
5472
|
+
},
|
|
5473
|
+
countBoosts: async (_learnCard, query) => {
|
|
5474
|
+
if (!userData)
|
|
5475
|
+
throw new Error("Please make an account first!");
|
|
5476
|
+
return client.boost.countBoosts.query({ query });
|
|
5472
5477
|
},
|
|
5473
5478
|
getPaginatedBoosts: async (_learnCard, options) => {
|
|
5474
5479
|
if (!userData)
|