@edifice.io/client 2.6.10-develop-enabling.20261023170056 → 2.6.10-develop-pedago.20261102171841

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.
@@ -5,14 +5,14 @@ export type RoleMapperParams = {
5
5
  extension?: string;
6
6
  };
7
7
  declare const defaultMappers: {
8
- readonly csv: ({ type, extension }: RoleMapperParams) => boolean;
8
+ readonly csv: ({ type, extension }: RoleMapperParams) => any;
9
9
  readonly doc: ({ type, extension }: RoleMapperParams) => boolean;
10
10
  readonly xls: ({ type, extension }: RoleMapperParams) => boolean;
11
11
  readonly img: ({ type }: RoleMapperParams) => boolean;
12
12
  readonly pdf: ({ type }: RoleMapperParams) => boolean;
13
13
  readonly ppt: ({ type, extension }: RoleMapperParams) => boolean;
14
- readonly txt: ({ type, extension }: RoleMapperParams) => boolean;
15
- readonly md: ({ type, extension }: RoleMapperParams) => boolean;
14
+ readonly txt: ({ type, extension }: RoleMapperParams) => any;
15
+ readonly md: ({ type, extension }: RoleMapperParams) => any;
16
16
  readonly video: ({ type }: RoleMapperParams) => boolean;
17
17
  readonly audio: ({ type }: RoleMapperParams) => boolean;
18
18
  readonly zip: ({ type }: RoleMapperParams) => boolean;
@@ -46,10 +46,9 @@ export declare function readDeviceCookies(): DeviceInfo | null;
46
46
  /**
47
47
  * Sets device detection cookies in the browser.
48
48
  *
49
- * First checks if cookies already exist. If so, returns the existing values
50
- * without recalculating. Otherwise, detects device info and sets the cookies.
51
- *
52
- * This optimization avoids parsing the user-agent on every page load.
49
+ * Cookies are (re)written on every call so that cookies previously written
50
+ * with other attributes (e.g. SameSite=Strict) get replaced.
51
+ * Detection is cheap (a single user-agent parse).
53
52
  *
54
53
  * @returns DeviceInfo object containing osName, osVersion, deviceType, deviceName
55
54
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/client",
3
- "version": "2.6.10-develop-enabling.20261023170056",
3
+ "version": "2.6.10-develop-pedago.20261102171841",
4
4
  "description": "Edifice TypeScript Client",
5
5
  "keywords": [
6
6
  "typescript",
@@ -37,28 +37,28 @@
37
37
  "axios": "1.13.4",
38
38
  "core-js": "3.48.0",
39
39
  "ua-parser-js": "2.0.9",
40
- "@edifice.io/utilities": "2.6.10-develop-enabling.20261023170056"
40
+ "@edifice.io/utilities": "2.6.10-develop-pedago.20261102171841"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/jasmine": "5.1.4",
44
44
  "@types/node": "22.19.8",
45
45
  "jasmine": "5.1.0",
46
46
  "rimraf": "5.0.5",
47
- "sonda": "0.11.1",
47
+ "rollup-plugin-visualizer": "5.12.0",
48
48
  "typedoc": "0.28.16",
49
49
  "typedoc-plugin-markdown": "3.17.1",
50
- "vite": "8.0.14",
50
+ "typescript": "5.9.3",
51
+ "vite": "5.4.14",
51
52
  "vite-plugin-dts": "4.5.4",
52
- "@edifice.io/config": "2.6.10-develop-enabling.20261023170056"
53
+ "@edifice.io/config": "2.6.10-develop-pedago.20261102171841"
53
54
  },
54
55
  "scripts": {
55
56
  "build": "vite build",
56
- "build:analyze": "vite build --mode analyze",
57
57
  "docs": "npx rimraf ./docs/ && npx typedoc src/ts/index.ts --excludePrivate --disableSources --plugin typedoc-plugin-markdown",
58
58
  "fix": "eslint --fix --report-unused-disable-directives --max-warnings 0",
59
59
  "format": "prettier --check \"src/ts/**/*.ts\"",
60
60
  "format:write": "prettier --write \"src/ts/**/*.ts\"",
61
- "lint": "eslint --max-warnings 0",
61
+ "lint": "eslint",
62
62
  "test": "vitest",
63
63
  "test:coverage": "vitest run --coverage"
64
64
  }