@wildberries/databus-service-user
Advanced tools
Comparing version 0.0.7-beta.2 to 0.0.7
@@ -5,3 +5,3 @@ import { FetchPermissionsParamsType, RefreshUserFeaturesType, UserDataType } from './types'; | ||
export declare const setFetchUserDataEvent: () => void; | ||
export declare const setFetchPermissionsEvent: ({ scope, }: FetchPermissionsParamsType) => void; | ||
export declare const setFetchPermissionsEvent: (options: FetchPermissionsParamsType) => void; | ||
export declare const setRefreshUserPermissionsEvent: ({ features, abortRequestId, }: RefreshUserFeaturesType) => void; |
@@ -27,8 +27,5 @@ "use strict"; | ||
}; | ||
exports.setFetchPermissionsEvent = function (_a) { | ||
var scope = _a.scope; | ||
exports.setFetchPermissionsEvent = function (options) { | ||
new databus_1.Databus({ name: constants_1.FETCH_PERMISSIONS }).addEvent({ | ||
detail: { | ||
scope: scope, | ||
}, | ||
detail: options, | ||
}); | ||
@@ -35,0 +32,0 @@ databus_1.Databus.dispatchEvent({ eventName: constants_1.FETCH_PERMISSIONS }); |
{ | ||
"name": "@wildberries/databus-service-user", | ||
"version": "0.0.7-beta.2", | ||
"version": "0.0.7", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
16658
314