@untemps/user-permissions-utils 1.1.37 → 1.1.38

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 (2) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/package.json +4 -2
@@ -0,0 +1,7 @@
1
+ export declare function getPermission(permissionName: PermissionName): Promise<PermissionState>
2
+ export declare function getUserMediaStream(
3
+ permissionName: PermissionName,
4
+ constraints: MediaStreamConstraints
5
+ ): Promise<MediaStream>
6
+ export declare function isNavigatorPermissionsSupported(): boolean
7
+ export declare function isNavigatorMediaDevicesSupported(): boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@untemps/user-permissions-utils",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "Collection of utility functions to manage user permissions",
5
5
  "repository": "git@github.com:untemps/user-permissions-utils.git",
6
6
  "keywords": [
@@ -19,8 +19,10 @@
19
19
  },
20
20
  "main": "dist/index.js",
21
21
  "module": "dist/index.es.js",
22
+ "types": "dist/index.d.ts",
22
23
  "exports": {
23
24
  ".": {
25
+ "types": "./dist/index.d.ts",
24
26
  "import": "./dist/index.es.js",
25
27
  "require": "./dist/index.js",
26
28
  "default": "./dist/index.es.js"
@@ -65,7 +67,7 @@
65
67
  "scripts": {
66
68
  "test": "vitest",
67
69
  "test:ci": "vitest run --coverage",
68
- "build": "vite build",
70
+ "build": "vite build && cp src/index.d.ts dist/index.d.ts",
69
71
  "prettier": "prettier \"*/**/*.js\" --ignore-path ./.prettierignore --write",
70
72
  "prepare": "husky"
71
73
  }