@flighthq/useragent 0.5.1-next.4304.322dc96 → 0.5.1-next.4328.05c3820
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/README.md +2 -2
- package/dist/contract.js +3 -3
- package/dist/deviceFormFactor.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/userAgent.js +3 -3
- package/dist/userAgentNative.d.ts +15 -15
- package/dist/userAgentNative.d.ts.map +1 -1
- package/dist/userAgentParse.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/useragent`. The `@fl
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/useragent@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/useragent@0.5.1-next.4328.05c3820](https://github.com/flighthq/flight/tree/05c3820b52a956705fde339318e349acb4b4c4e9/packages/useragent)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/05c3820b52a956705fde339318e349acb4b4c4e9/LICENSE.md)
|
package/dist/contract.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated from crates/flight-useragent/src/lib.rs by flight-compiler.
|
|
2
2
|
// Rust is authoritative; run `npm run generate` after changing it.
|
|
3
|
-
export { DeviceFormFactorCar, DeviceFormFactorDesktop, DeviceFormFactorPhone, DeviceFormFactorTV, DeviceFormFactorTablet, DeviceFormFactorUnknown, DeviceFormFactorWatch, } from
|
|
4
|
-
export { detectEndianness, parseUserAgentArch, parseUserAgentEngine, parseUserAgentEngineVersion, parseUserAgentKind, parseUserAgentName, parseUserAgentPointerWidth, parseUserAgentRuntime, parseUserAgentVersion, } from
|
|
5
|
-
export { parseUserAgentFormFactor, parseUserAgentOsName, parseUserAgentOsVersion } from
|
|
3
|
+
export { DeviceFormFactorCar, DeviceFormFactorDesktop, DeviceFormFactorPhone, DeviceFormFactorTV, DeviceFormFactorTablet, DeviceFormFactorUnknown, DeviceFormFactorWatch, } from './deviceFormFactor.js';
|
|
4
|
+
export { detectEndianness, parseUserAgentArch, parseUserAgentEngine, parseUserAgentEngineVersion, parseUserAgentKind, parseUserAgentName, parseUserAgentPointerWidth, parseUserAgentRuntime, parseUserAgentVersion, } from './userAgent.js';
|
|
5
|
+
export { parseUserAgentFormFactor, parseUserAgentOsName, parseUserAgentOsVersion } from './userAgentParse.js';
|
|
6
6
|
//# sourceMappingURL=contract.js.map
|
|
@@ -7,29 +7,29 @@ export type DeviceFormFactor = string;
|
|
|
7
7
|
/**
|
|
8
8
|
* TS `DeviceFormFactorCar`.
|
|
9
9
|
*/
|
|
10
|
-
export declare const DeviceFormFactorCar:
|
|
10
|
+
export declare const DeviceFormFactorCar: 'Car';
|
|
11
11
|
/**
|
|
12
12
|
* TS `DeviceFormFactorDesktop`.
|
|
13
13
|
*/
|
|
14
|
-
export declare const DeviceFormFactorDesktop:
|
|
14
|
+
export declare const DeviceFormFactorDesktop: 'Desktop';
|
|
15
15
|
/**
|
|
16
16
|
* TS `DeviceFormFactorPhone`.
|
|
17
17
|
*/
|
|
18
|
-
export declare const DeviceFormFactorPhone:
|
|
18
|
+
export declare const DeviceFormFactorPhone: 'Phone';
|
|
19
19
|
/**
|
|
20
20
|
* TS `DeviceFormFactorTablet`.
|
|
21
21
|
*/
|
|
22
|
-
export declare const DeviceFormFactorTablet:
|
|
22
|
+
export declare const DeviceFormFactorTablet: 'Tablet';
|
|
23
23
|
/**
|
|
24
24
|
* TS `DeviceFormFactorTV`.
|
|
25
25
|
*/
|
|
26
|
-
export declare const DeviceFormFactorTV:
|
|
26
|
+
export declare const DeviceFormFactorTV: 'TV';
|
|
27
27
|
/**
|
|
28
28
|
* TS `DeviceFormFactorUnknown`.
|
|
29
29
|
*/
|
|
30
|
-
export declare const DeviceFormFactorUnknown:
|
|
30
|
+
export declare const DeviceFormFactorUnknown: 'Unknown';
|
|
31
31
|
/**
|
|
32
32
|
* TS `DeviceFormFactorWatch`.
|
|
33
33
|
*/
|
|
34
|
-
export declare const DeviceFormFactorWatch:
|
|
34
|
+
export declare const DeviceFormFactorWatch: 'Watch';
|
|
35
35
|
//# sourceMappingURL=deviceFormFactor.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Generated from crates/flight-useragent/src/lib.rs by flight-compiler.
|
|
2
2
|
// Rust is authoritative; run `npm run generate` after changing it.
|
|
3
|
-
export { DeviceFormFactorCar, DeviceFormFactorDesktop, DeviceFormFactorPhone, DeviceFormFactorTV, DeviceFormFactorTablet, DeviceFormFactorUnknown, DeviceFormFactorWatch, detectEndianness, parseUserAgentArch, parseUserAgentEngine, parseUserAgentEngineVersion, parseUserAgentFormFactor, parseUserAgentKind, parseUserAgentName, parseUserAgentOsName, parseUserAgentOsVersion, parseUserAgentPointerWidth, parseUserAgentRuntime, parseUserAgentVersion, } from
|
|
3
|
+
export { DeviceFormFactorCar, DeviceFormFactorDesktop, DeviceFormFactorPhone, DeviceFormFactorTV, DeviceFormFactorTablet, DeviceFormFactorUnknown, DeviceFormFactorWatch, detectEndianness, parseUserAgentArch, parseUserAgentEngine, parseUserAgentEngineVersion, parseUserAgentFormFactor, parseUserAgentKind, parseUserAgentName, parseUserAgentOsName, parseUserAgentOsVersion, parseUserAgentPointerWidth, parseUserAgentRuntime, parseUserAgentVersion, } from './contract.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/userAgent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated from crates/flight-useragent/src/user_agent.rs by flight-compiler.
|
|
2
2
|
// Rust is authoritative; run `npm run generate` after changing it.
|
|
3
|
-
import { captureAfter, charsOf, contains, containsAny, isAsciiDigit, isDigitOrDot, matchesAt, positions, } from
|
|
4
|
-
import { PlatformEngine, PlatformKind, PlatformName, detectEndiannessNative, parseUserAgentRuntimeNative, } from
|
|
5
|
-
import { parseUserAgentOsVersion } from
|
|
3
|
+
import { captureAfter, charsOf, contains, containsAny, isAsciiDigit, isDigitOrDot, matchesAt, positions, } from './jsPattern.js';
|
|
4
|
+
import { PlatformEngine, PlatformKind, PlatformName, detectEndiannessNative, parseUserAgentRuntimeNative, } from './userAgentNative.js';
|
|
5
|
+
import { parseUserAgentOsVersion } from './userAgentParse.js';
|
|
6
6
|
/**
|
|
7
7
|
* Probes host CPU byte order with a local two-byte write-then-read (the source's
|
|
8
8
|
* `Uint16Array`/`Uint8Array` view of one buffer): `Big` when the high byte comes first, `Little`
|
|
@@ -9,25 +9,25 @@ export interface Record<T> {
|
|
|
9
9
|
readonly [key: string]: T;
|
|
10
10
|
}
|
|
11
11
|
export declare const PlatformEngine: {
|
|
12
|
-
readonly Gecko:
|
|
13
|
-
readonly Blink:
|
|
14
|
-
readonly Webkit:
|
|
15
|
-
readonly Unknown:
|
|
12
|
+
readonly Gecko: 'gecko';
|
|
13
|
+
readonly Blink: 'blink';
|
|
14
|
+
readonly Webkit: 'webkit';
|
|
15
|
+
readonly Unknown: 'unknown';
|
|
16
16
|
};
|
|
17
17
|
export declare const PlatformKind: {
|
|
18
|
-
readonly Desktop:
|
|
19
|
-
readonly Mobile:
|
|
20
|
-
readonly Web:
|
|
21
|
-
readonly Unknown:
|
|
18
|
+
readonly Desktop: 'desktop';
|
|
19
|
+
readonly Mobile: 'mobile';
|
|
20
|
+
readonly Web: 'web';
|
|
21
|
+
readonly Unknown: 'unknown';
|
|
22
22
|
};
|
|
23
23
|
export declare const PlatformName: {
|
|
24
|
-
readonly Web:
|
|
25
|
-
readonly Windows:
|
|
26
|
-
readonly MacOs:
|
|
27
|
-
readonly Linux:
|
|
28
|
-
readonly Ios:
|
|
29
|
-
readonly Android:
|
|
30
|
-
readonly Unknown:
|
|
24
|
+
readonly Web: 'web';
|
|
25
|
+
readonly Windows: 'windows';
|
|
26
|
+
readonly MacOs: 'macos';
|
|
27
|
+
readonly Linux: 'linux';
|
|
28
|
+
readonly Ios: 'ios';
|
|
29
|
+
readonly Android: 'android';
|
|
30
|
+
readonly Unknown: 'unknown';
|
|
31
31
|
};
|
|
32
32
|
export declare function detectEndiannessNative(): PlatformEndianness;
|
|
33
33
|
export declare function parseUserAgentRuntimeNative(win: UserAgentRuntimeWindow): PlatformRuntime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userAgentNative.d.ts","sourceRoot":"","sources":["../src/userAgentNative.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC;AACjG,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAChG,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AACxE,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC;AAE9B,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"userAgentNative.d.ts","sourceRoot":"","sources":["../src/userAgentNative.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ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1,7 +1,7 @@
|
|
|
1
1
|
// Generated from crates/flight-useragent/src/user_agent_parse.rs by flight-compiler.
|
|
2
2
|
// Rust is authoritative; run `npm run generate` after changing it.
|
|
3
|
-
import { DeviceFormFactorCar, DeviceFormFactorDesktop, DeviceFormFactorPhone, DeviceFormFactorTV, DeviceFormFactorTablet, DeviceFormFactorUnknown, DeviceFormFactorWatch, } from
|
|
4
|
-
import { captureAfter, captureAfterWhitespace, charsOf, contains, containsAny, containsThenOnLine, isAsciiDigit, isDigitOrDot, isDigitOrUnderscore, isDigitUnderscoreOrDot, isJsLineTerminator, isJsWhitespace, isNotJsWhitespace, matchesAt, positions, runLen, underscoresToDots, } from
|
|
3
|
+
import { DeviceFormFactorCar, DeviceFormFactorDesktop, DeviceFormFactorPhone, DeviceFormFactorTV, DeviceFormFactorTablet, DeviceFormFactorUnknown, DeviceFormFactorWatch, } from './deviceFormFactor.js';
|
|
4
|
+
import { captureAfter, captureAfterWhitespace, charsOf, contains, containsAny, containsThenOnLine, isAsciiDigit, isDigitOrDot, isDigitOrUnderscore, isDigitUnderscoreOrDot, isJsLineTerminator, isJsWhitespace, isNotJsWhitespace, matchesAt, positions, runLen, underscoresToDots, } from './jsPattern.js';
|
|
5
5
|
/**
|
|
6
6
|
* `bb\d+`
|
|
7
7
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/useragent",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.4328.05c3820",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"typescript": "^
|
|
44
|
+
"typescript": "^7.0.2"
|
|
45
45
|
},
|
|
46
46
|
"description": "Pure user-agent string parsing to device and platform identity tokens.",
|
|
47
47
|
"sideEffects": false
|