@lokalise/harmony 1.34.1 → 1.34.2
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/harmony100.cjs +99 -18
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +82 -18
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +130 -12
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +130 -12
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +12 -99
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +11 -81
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +6 -22
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +5 -21
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +39 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +39 -5
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +55 -127
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +55 -127
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +7 -12
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +6 -11
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +22 -6
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +21 -5
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +5 -39
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +5 -39
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +6 -60
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +5 -59
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +13 -6
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +13 -6
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +19 -7
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +18 -6
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +2 -2
- package/dist/harmony112.mjs +2 -2
- package/dist/harmony113.cjs +2 -2
- package/dist/harmony113.mjs +2 -2
- package/dist/harmony114.cjs +61 -95
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +61 -95
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +88 -13
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +88 -13
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +19 -15
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +18 -14
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +94 -34
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +94 -34
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +11 -26
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +11 -26
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +12 -60
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -60
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +36 -88
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +36 -88
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +29 -19
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +28 -18
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +7 -13
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +7 -13
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +57 -15
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +57 -15
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +59 -15
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +59 -15
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +19 -12
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +18 -11
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +12 -15
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +12 -15
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -19
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +13 -19
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +14 -10
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +14 -10
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -7
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -7
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +8 -1
- package/dist/harmony13.cjs.map +1 -1
- package/dist/harmony13.mjs +8 -1
- package/dist/harmony13.mjs.map +1 -1
- package/dist/harmony130.cjs +15 -56
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +15 -56
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +20 -59
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +20 -59
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +13 -19
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -18
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +46 -6
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +46 -6
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +13 -13
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +12 -12
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +5 -31
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +5 -31
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +11 -13
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +11 -13
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +31 -45
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +31 -45
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +15 -13
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +14 -12
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony16.cjs +1 -1
- package/dist/harmony16.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony69.cjs +1 -1
- package/dist/harmony69.mjs +1 -1
- package/dist/harmony71.cjs +1 -1
- package/dist/harmony71.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- package/dist/harmony73.cjs +1 -1
- package/dist/harmony73.mjs +1 -1
- package/dist/harmony74.cjs +2 -2
- package/dist/harmony74.mjs +2 -2
- package/dist/harmony75.cjs +2 -2
- package/dist/harmony75.mjs +2 -2
- package/dist/harmony76.cjs +2 -2
- package/dist/harmony76.mjs +2 -2
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony78.cjs +3 -3
- package/dist/harmony78.mjs +3 -3
- package/dist/harmony79.cjs +6 -6
- package/dist/harmony79.mjs +6 -6
- package/dist/harmony82.cjs +2 -2
- package/dist/harmony82.mjs +2 -2
- package/dist/harmony84.cjs +2 -2
- package/dist/harmony84.mjs +2 -2
- package/dist/harmony85.cjs +7 -12
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +6 -11
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +8 -20
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +8 -20
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +9 -12
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +8 -11
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +57 -12
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +56 -11
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +42 -6
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +41 -5
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +6 -10
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +5 -9
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +6 -6
- package/dist/harmony91.mjs +6 -6
- package/dist/harmony92.cjs +24 -57
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +23 -56
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +6 -42
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +5 -41
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +21 -5
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +21 -5
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +7 -4
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +7 -4
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +12 -25
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +11 -24
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +20 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +20 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +9 -18
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +10 -19
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +9 -9
- package/dist/harmony99.mjs +9 -9
- package/package.json +1 -1
package/dist/harmony129.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony129.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony129.mjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;AACA,MAAI,aAAa,OAAOA,kBAAU,YAAYA,kBAAUA,eAAO,WAAW,UAAUA;AAEpF,gBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony13.cjs
CHANGED
@@ -3,10 +3,17 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const createHeaderBuilderMiddleware = require("./harmony18.cjs");
|
4
4
|
const jwtTokenPayload = require("./harmony16.cjs");
|
5
5
|
const UnauthorizedError = require("./harmony15.cjs");
|
6
|
+
const NewJwtIssuedEvent = require("./harmony110.cjs");
|
6
7
|
function JwtAuthHeaderBuilderMiddleware(props) {
|
7
8
|
return createHeaderBuilderMiddleware.createHeaderBuilderMiddleware(async (builder) => {
|
8
9
|
var _a, _b;
|
9
|
-
|
10
|
+
let token = props.getCurrentToken();
|
11
|
+
if (!token) {
|
12
|
+
token = await ((_a = props.generateNewToken) == null ? void 0 : _a.call(props)) ?? null;
|
13
|
+
if (token) {
|
14
|
+
window == null ? void 0 : window.dispatchEvent(new NewJwtIssuedEvent.NewJwtIssuedEvent(token));
|
15
|
+
}
|
16
|
+
}
|
10
17
|
if (!token) {
|
11
18
|
throw new UnauthorizedError.UnauthorizedError();
|
12
19
|
}
|
package/dist/harmony13.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony13.cjs","sources":["../src/features/auth/core/middleware/jwtAuthHeaderBuilderMiddleware.ts"],"sourcesContent":["import { createHeaderBuilderMiddleware } from '@features/auth/core/headers/createHeaderBuilderMiddleware'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport { UnauthorizedError } from '@features/auth/errors/UnauthorizedError'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\nexport type JwtAuthHeaderBuilderMiddlewareProps = {\n\trefreshToken: (current: JwtToken) => Promise<JwtToken | null>\n\tgetCurrentToken: () => JwtToken | null\n\tgenerateNewToken?: () => Promise<JwtToken | null>\n\tonNewTokenIssued?: (token: JwtToken) => void\n}\n\nexport function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps) {\n\treturn createHeaderBuilderMiddleware(async (builder) => {\n\t\
|
1
|
+
{"version":3,"file":"harmony13.cjs","sources":["../src/features/auth/core/middleware/jwtAuthHeaderBuilderMiddleware.ts"],"sourcesContent":["import { createHeaderBuilderMiddleware } from '@features/auth/core/headers/createHeaderBuilderMiddleware'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport { UnauthorizedError } from '@features/auth/errors/UnauthorizedError'\nimport { NewJwtIssuedEvent } from '@features/auth/frontend/events/NewJwtIssuedEvent'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\nexport type JwtAuthHeaderBuilderMiddlewareProps = {\n\trefreshToken: (current: JwtToken) => Promise<JwtToken | null>\n\tgetCurrentToken: () => JwtToken | null\n\tgenerateNewToken?: () => Promise<JwtToken | null>\n\tonNewTokenIssued?: (token: JwtToken) => void\n}\n\nexport function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps) {\n\treturn createHeaderBuilderMiddleware(async (builder) => {\n\t\t// Check if current token exists\n\t\tlet token = props.getCurrentToken()\n\n\t\tif (!token) {\n\t\t\t// Attempt to generate new token\n\t\t\ttoken = (await props.generateNewToken?.()) ?? null\n\n\t\t\t// If new token is generated, dispatch an event to update payload hooks\n\t\t\tif (token) {\n\t\t\t\twindow?.dispatchEvent(new NewJwtIssuedEvent(token))\n\t\t\t}\n\t\t}\n\n\t\tif (!token) {\n\t\t\tthrow new UnauthorizedError()\n\t\t}\n\n\t\t// Check if the token is expired or will expire in less than 5 minutes\n\t\tconst { exp } = parseJwtTokenPayload(token.accessToken) ?? { exp: 0 }\n\t\tconst tokenExpirationInMilliseconds = exp * 1000\n\t\tconst tokenExpirationSafetyMargin = 5 * 60 * 1000 // 5 minutes in milliseconds\n\t\tif (Date.now() < tokenExpirationInMilliseconds - tokenExpirationSafetyMargin) {\n\t\t\treturn builder.add('authorization', `Bearer ${token.accessToken}`)\n\t\t}\n\n\t\tconst newToken = await props.refreshToken(token)\n\n\t\tif (!newToken) {\n\t\t\tthrow new UnauthorizedError()\n\t\t}\n\n\t\tprops.onNewTokenIssued?.(newToken)\n\n\t\treturn builder.add('authorization', `Bearer ${newToken.accessToken}`)\n\t})\n}\n"],"names":["createHeaderBuilderMiddleware","NewJwtIssuedEvent","UnauthorizedError","parseJwtTokenPayload"],"mappings":";;;;;;AAaO,SAAS,+BAA+B,OAA4C;AACnF,SAAAA,8BAAAA,8BAA8B,OAAO,YAAY;;AAEnD,QAAA,QAAQ,MAAM,gBAAgB;AAElC,QAAI,CAAC,OAAO;AAEF,cAAA,QAAM,WAAM,qBAAN,mCAA+B;AAG9C,UAAI,OAAO;AACV,yCAAQ,cAAc,IAAIC,kBAAkB,kBAAA,KAAK;AAAA,MAAC;AAAA,IACnD;AAGD,QAAI,CAAC,OAAO;AACX,YAAM,IAAIC,kBAAAA,kBAAkB;AAAA,IAAA;AAIvB,UAAA,EAAE,IAAQ,IAAAC,qCAAqB,MAAM,WAAW,KAAK,EAAE,KAAK,EAAE;AACpE,UAAM,gCAAgC,MAAM;AACtC,UAAA,8BAA8B,IAAI,KAAK;AAC7C,QAAI,KAAK,QAAQ,gCAAgC,6BAA6B;AAC7E,aAAO,QAAQ,IAAI,iBAAiB,UAAU,MAAM,WAAW,EAAE;AAAA,IAAA;AAGlE,UAAM,WAAW,MAAM,MAAM,aAAa,KAAK;AAE/C,QAAI,CAAC,UAAU;AACd,YAAM,IAAID,kBAAAA,kBAAkB;AAAA,IAAA;AAG7B,gBAAM,qBAAN,+BAAyB;AAEzB,WAAO,QAAQ,IAAI,iBAAiB,UAAU,SAAS,WAAW,EAAE;AAAA,EAAA,CACpE;AACF;;"}
|
package/dist/harmony13.mjs
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
import { createHeaderBuilderMiddleware } from "./harmony18.mjs";
|
2
2
|
import { parseJwtTokenPayload } from "./harmony16.mjs";
|
3
3
|
import { UnauthorizedError } from "./harmony15.mjs";
|
4
|
+
import { NewJwtIssuedEvent } from "./harmony110.mjs";
|
4
5
|
function JwtAuthHeaderBuilderMiddleware(props) {
|
5
6
|
return createHeaderBuilderMiddleware(async (builder) => {
|
6
7
|
var _a, _b;
|
7
|
-
|
8
|
+
let token = props.getCurrentToken();
|
9
|
+
if (!token) {
|
10
|
+
token = await ((_a = props.generateNewToken) == null ? void 0 : _a.call(props)) ?? null;
|
11
|
+
if (token) {
|
12
|
+
window == null ? void 0 : window.dispatchEvent(new NewJwtIssuedEvent(token));
|
13
|
+
}
|
14
|
+
}
|
8
15
|
if (!token) {
|
9
16
|
throw new UnauthorizedError();
|
10
17
|
}
|
package/dist/harmony13.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony13.mjs","sources":["../src/features/auth/core/middleware/jwtAuthHeaderBuilderMiddleware.ts"],"sourcesContent":["import { createHeaderBuilderMiddleware } from '@features/auth/core/headers/createHeaderBuilderMiddleware'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport { UnauthorizedError } from '@features/auth/errors/UnauthorizedError'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\nexport type JwtAuthHeaderBuilderMiddlewareProps = {\n\trefreshToken: (current: JwtToken) => Promise<JwtToken | null>\n\tgetCurrentToken: () => JwtToken | null\n\tgenerateNewToken?: () => Promise<JwtToken | null>\n\tonNewTokenIssued?: (token: JwtToken) => void\n}\n\nexport function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps) {\n\treturn createHeaderBuilderMiddleware(async (builder) => {\n\t\
|
1
|
+
{"version":3,"file":"harmony13.mjs","sources":["../src/features/auth/core/middleware/jwtAuthHeaderBuilderMiddleware.ts"],"sourcesContent":["import { createHeaderBuilderMiddleware } from '@features/auth/core/headers/createHeaderBuilderMiddleware'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport { UnauthorizedError } from '@features/auth/errors/UnauthorizedError'\nimport { NewJwtIssuedEvent } from '@features/auth/frontend/events/NewJwtIssuedEvent'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\nexport type JwtAuthHeaderBuilderMiddlewareProps = {\n\trefreshToken: (current: JwtToken) => Promise<JwtToken | null>\n\tgetCurrentToken: () => JwtToken | null\n\tgenerateNewToken?: () => Promise<JwtToken | null>\n\tonNewTokenIssued?: (token: JwtToken) => void\n}\n\nexport function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps) {\n\treturn createHeaderBuilderMiddleware(async (builder) => {\n\t\t// Check if current token exists\n\t\tlet token = props.getCurrentToken()\n\n\t\tif (!token) {\n\t\t\t// Attempt to generate new token\n\t\t\ttoken = (await props.generateNewToken?.()) ?? null\n\n\t\t\t// If new token is generated, dispatch an event to update payload hooks\n\t\t\tif (token) {\n\t\t\t\twindow?.dispatchEvent(new NewJwtIssuedEvent(token))\n\t\t\t}\n\t\t}\n\n\t\tif (!token) {\n\t\t\tthrow new UnauthorizedError()\n\t\t}\n\n\t\t// Check if the token is expired or will expire in less than 5 minutes\n\t\tconst { exp } = parseJwtTokenPayload(token.accessToken) ?? { exp: 0 }\n\t\tconst tokenExpirationInMilliseconds = exp * 1000\n\t\tconst tokenExpirationSafetyMargin = 5 * 60 * 1000 // 5 minutes in milliseconds\n\t\tif (Date.now() < tokenExpirationInMilliseconds - tokenExpirationSafetyMargin) {\n\t\t\treturn builder.add('authorization', `Bearer ${token.accessToken}`)\n\t\t}\n\n\t\tconst newToken = await props.refreshToken(token)\n\n\t\tif (!newToken) {\n\t\t\tthrow new UnauthorizedError()\n\t\t}\n\n\t\tprops.onNewTokenIssued?.(newToken)\n\n\t\treturn builder.add('authorization', `Bearer ${newToken.accessToken}`)\n\t})\n}\n"],"names":[],"mappings":";;;;AAaO,SAAS,+BAA+B,OAA4C;AACnF,SAAA,8BAA8B,OAAO,YAAY;;AAEnD,QAAA,QAAQ,MAAM,gBAAgB;AAElC,QAAI,CAAC,OAAO;AAEF,cAAA,QAAM,WAAM,qBAAN,mCAA+B;AAG9C,UAAI,OAAO;AACV,yCAAQ,cAAc,IAAI,kBAAkB,KAAK;AAAA,MAAC;AAAA,IACnD;AAGD,QAAI,CAAC,OAAO;AACX,YAAM,IAAI,kBAAkB;AAAA,IAAA;AAIvB,UAAA,EAAE,IAAQ,IAAA,qBAAqB,MAAM,WAAW,KAAK,EAAE,KAAK,EAAE;AACpE,UAAM,gCAAgC,MAAM;AACtC,UAAA,8BAA8B,IAAI,KAAK;AAC7C,QAAI,KAAK,QAAQ,gCAAgC,6BAA6B;AAC7E,aAAO,QAAQ,IAAI,iBAAiB,UAAU,MAAM,WAAW,EAAE;AAAA,IAAA;AAGlE,UAAM,WAAW,MAAM,MAAM,aAAa,KAAK;AAE/C,QAAI,CAAC,UAAU;AACd,YAAM,IAAI,kBAAkB;AAAA,IAAA;AAG7B,gBAAM,qBAAN,+BAAyB;AAEzB,WAAO,QAAQ,IAAI,iBAAiB,UAAU,SAAS,WAAW,EAAE;AAAA,EAAA,CACpE;AACF;"}
|
package/dist/harmony130.cjs
CHANGED
@@ -1,60 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
const { getProjectUrl, langNameOnClick, langProgressOnClick } = TasksContext.useTasks();
|
13
|
-
const progressValue = language.progress ?? 0;
|
14
|
-
const isLanguageCompleted = language.status === types.SidebarTaskLanguageStatuses.Completed;
|
15
|
-
const languageProgressCompleted = content.isLanguageProgressCompleted(task, language);
|
16
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
17
|
-
"tr",
|
18
|
-
{
|
19
|
-
className: clsx.clsx({
|
20
|
-
[TaskLanguage_module.default.langRowCompleted]: languageProgressCompleted
|
21
|
-
}),
|
22
|
-
children: [
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
24
|
-
louis.Link,
|
25
|
-
{
|
26
|
-
href: getProjectUrl({ task, language }),
|
27
|
-
onClick: () => {
|
28
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
29
|
-
},
|
30
|
-
children: language.name
|
31
|
-
}
|
32
|
-
) }) }),
|
33
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: TaskLanguage_module.default.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsxRuntime.jsx(
|
34
|
-
louis.Link,
|
35
|
-
{
|
36
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
37
|
-
onClick: () => {
|
38
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
39
|
-
},
|
40
|
-
children: language.base_words_total - language.base_words_done
|
41
|
-
}
|
42
|
-
) }) }),
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsxs("td", { children: [
|
44
|
-
progressValue,
|
45
|
-
"%"
|
46
|
-
] }),
|
47
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsxRuntime.jsx(TaskLanguageCompleted.TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsxRuntime.jsx(
|
48
|
-
"span",
|
49
|
-
{
|
50
|
-
className: `${TaskLanguage_module.default.langStatus} flex-row items-center justify-start`,
|
51
|
-
"data-status": language.status,
|
52
|
-
children: content.getStatusText(language.status, progressValue)
|
53
|
-
}
|
54
|
-
) })
|
55
|
-
]
|
3
|
+
var _trimmedEndIndex;
|
4
|
+
var hasRequired_trimmedEndIndex;
|
5
|
+
function require_trimmedEndIndex() {
|
6
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
7
|
+
hasRequired_trimmedEndIndex = 1;
|
8
|
+
var reWhitespace = /\s/;
|
9
|
+
function trimmedEndIndex(string) {
|
10
|
+
var index = string.length;
|
11
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
56
12
|
}
|
57
|
-
|
58
|
-
}
|
59
|
-
|
13
|
+
return index;
|
14
|
+
}
|
15
|
+
_trimmedEndIndex = trimmedEndIndex;
|
16
|
+
return _trimmedEndIndex;
|
17
|
+
}
|
18
|
+
exports.__require = require_trimmedEndIndex;
|
60
19
|
//# sourceMappingURL=harmony130.cjs.map
|
package/dist/harmony130.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony130.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony130.cjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony130.mjs
CHANGED
@@ -1,60 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
const { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks();
|
11
|
-
const progressValue = language.progress ?? 0;
|
12
|
-
const isLanguageCompleted = language.status === SidebarTaskLanguageStatuses.Completed;
|
13
|
-
const languageProgressCompleted = isLanguageProgressCompleted(task, language);
|
14
|
-
return /* @__PURE__ */ jsxs(
|
15
|
-
"tr",
|
16
|
-
{
|
17
|
-
className: clsx({
|
18
|
-
[styles.langRowCompleted]: languageProgressCompleted
|
19
|
-
}),
|
20
|
-
children: [
|
21
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsx(
|
22
|
-
Link,
|
23
|
-
{
|
24
|
-
href: getProjectUrl({ task, language }),
|
25
|
-
onClick: () => {
|
26
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
27
|
-
},
|
28
|
-
children: language.name
|
29
|
-
}
|
30
|
-
) }) }),
|
31
|
-
/* @__PURE__ */ jsx("td", { className: styles.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsx(
|
32
|
-
Link,
|
33
|
-
{
|
34
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
35
|
-
onClick: () => {
|
36
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
37
|
-
},
|
38
|
-
children: language.base_words_total - language.base_words_done
|
39
|
-
}
|
40
|
-
) }) }),
|
41
|
-
/* @__PURE__ */ jsxs("td", { children: [
|
42
|
-
progressValue,
|
43
|
-
"%"
|
44
|
-
] }),
|
45
|
-
/* @__PURE__ */ jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsx(TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsx(
|
46
|
-
"span",
|
47
|
-
{
|
48
|
-
className: `${styles.langStatus} flex-row items-center justify-start`,
|
49
|
-
"data-status": language.status,
|
50
|
-
children: getStatusText(language.status, progressValue)
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
]
|
1
|
+
var _trimmedEndIndex;
|
2
|
+
var hasRequired_trimmedEndIndex;
|
3
|
+
function require_trimmedEndIndex() {
|
4
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
5
|
+
hasRequired_trimmedEndIndex = 1;
|
6
|
+
var reWhitespace = /\s/;
|
7
|
+
function trimmedEndIndex(string) {
|
8
|
+
var index = string.length;
|
9
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
54
10
|
}
|
55
|
-
|
56
|
-
}
|
11
|
+
return index;
|
12
|
+
}
|
13
|
+
_trimmedEndIndex = trimmedEndIndex;
|
14
|
+
return _trimmedEndIndex;
|
15
|
+
}
|
57
16
|
export {
|
58
|
-
|
17
|
+
require_trimmedEndIndex as __require
|
59
18
|
};
|
60
19
|
//# sourceMappingURL=harmony130.mjs.map
|
package/dist/harmony130.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony130.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony130.mjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony131.cjs
CHANGED
@@ -1,63 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
return "-";
|
18
|
-
}
|
19
|
-
};
|
20
|
-
const resolveStatus = (language) => {
|
21
|
-
const progress = language.progress ?? 0;
|
22
|
-
if (language.status === types.SidebarTaskLanguageStatuses.Created && progress > 0) {
|
23
|
-
return types.SidebarTaskLanguageStatuses.InProgress;
|
24
|
-
}
|
25
|
-
return language.status;
|
26
|
-
};
|
27
|
-
const tagColor = {
|
28
|
-
[types.SidebarTaskTypeOptions.translation]: "#0891B2",
|
29
|
-
[types.SidebarTaskTypeOptions.review]: "#16922D",
|
30
|
-
[types.SidebarTaskTypeOptions.lqa_by_ai]: "#8B5CF6",
|
31
|
-
[types.SidebarTaskTypeOptions.automatic_translation]: "#60A5FA"
|
32
|
-
};
|
33
|
-
const getTaskLanguages = (langs) => {
|
34
|
-
const statusSortOrder = [
|
35
|
-
types.SidebarTaskLanguageStatuses.InProgress,
|
36
|
-
types.SidebarTaskLanguageStatuses.Created,
|
37
|
-
types.SidebarTaskLanguageStatuses.Completed
|
38
|
-
];
|
39
|
-
return langs.filter((language) => language.status !== "queued").map((lang) => ({ ...lang, status: resolveStatus(lang) })).sort((a, b) => {
|
40
|
-
if (a.status === types.SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {
|
41
|
-
return -1;
|
42
|
-
}
|
43
|
-
if (b.status === types.SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {
|
44
|
-
return 1;
|
3
|
+
const _Symbol = require("./harmony136.cjs");
|
4
|
+
const _getRawTag = require("./harmony137.cjs");
|
5
|
+
const _objectToString = require("./harmony138.cjs");
|
6
|
+
var _baseGetTag;
|
7
|
+
var hasRequired_baseGetTag;
|
8
|
+
function require_baseGetTag() {
|
9
|
+
if (hasRequired_baseGetTag) return _baseGetTag;
|
10
|
+
hasRequired_baseGetTag = 1;
|
11
|
+
var Symbol2 = _Symbol.__require(), getRawTag = _getRawTag.__require(), objectToString = _objectToString.__require();
|
12
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
13
|
+
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
14
|
+
function baseGetTag(value) {
|
15
|
+
if (value == null) {
|
16
|
+
return value === void 0 ? undefinedTag : nullTag;
|
45
17
|
}
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
const isInProgressOrCreated = (status) => {
|
53
|
-
return [types.SidebarTaskStatuses.InProgress, types.SidebarTaskStatuses.Created].includes(status);
|
54
|
-
};
|
55
|
-
const isLanguageProgressCompleted = (task, language) => {
|
56
|
-
return isInProgressOrCreated(task.status) && isInProgressOrCreated(language.status) && (language.progress ?? 0) >= 100;
|
57
|
-
};
|
58
|
-
exports.getStatusText = getStatusText;
|
59
|
-
exports.getTaskLanguages = getTaskLanguages;
|
60
|
-
exports.isLanguageProgressCompleted = isLanguageProgressCompleted;
|
61
|
-
exports.resolveStatus = resolveStatus;
|
62
|
-
exports.tagColor = tagColor;
|
18
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
19
|
+
}
|
20
|
+
_baseGetTag = baseGetTag;
|
21
|
+
return _baseGetTag;
|
22
|
+
}
|
23
|
+
exports.__require = require_baseGetTag;
|
63
24
|
//# sourceMappingURL=harmony131.cjs.map
|
package/dist/harmony131.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony131.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony131.cjs","sources":["../node_modules/lodash/_baseGetTag.js"],"sourcesContent":["var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n"],"names":["Symbol","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAAA,MAAIA,UAASC,QAAAA,UAAoB,GAC7B,YAAYC,WAAAA,UAAuB,GACnC,iBAAiBC,gBAAAA,UAA4B;AAGjD,MAAI,UAAU,iBACV,eAAe;AAGnB,MAAI,iBAAiBH,UAASA,QAAO,cAAc;AASnD,WAAS,WAAW,OAAO;AACzB,QAAI,SAAS,MAAM;AACjB,aAAO,UAAU,SAAY,eAAe;AAAA,IAChD;AACE,WAAQ,kBAAkB,kBAAkB,OAAO,KAAK,IACpD,UAAU,KAAK,IACf,eAAe,KAAK;AAAA,EAC1B;AAEA,gBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony131.mjs
CHANGED
@@ -1,63 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
return "-";
|
16
|
-
}
|
17
|
-
};
|
18
|
-
const resolveStatus = (language) => {
|
19
|
-
const progress = language.progress ?? 0;
|
20
|
-
if (language.status === SidebarTaskLanguageStatuses.Created && progress > 0) {
|
21
|
-
return SidebarTaskLanguageStatuses.InProgress;
|
22
|
-
}
|
23
|
-
return language.status;
|
24
|
-
};
|
25
|
-
const tagColor = {
|
26
|
-
[SidebarTaskTypeOptions.translation]: "#0891B2",
|
27
|
-
[SidebarTaskTypeOptions.review]: "#16922D",
|
28
|
-
[SidebarTaskTypeOptions.lqa_by_ai]: "#8B5CF6",
|
29
|
-
[SidebarTaskTypeOptions.automatic_translation]: "#60A5FA"
|
30
|
-
};
|
31
|
-
const getTaskLanguages = (langs) => {
|
32
|
-
const statusSortOrder = [
|
33
|
-
SidebarTaskLanguageStatuses.InProgress,
|
34
|
-
SidebarTaskLanguageStatuses.Created,
|
35
|
-
SidebarTaskLanguageStatuses.Completed
|
36
|
-
];
|
37
|
-
return langs.filter((language) => language.status !== "queued").map((lang) => ({ ...lang, status: resolveStatus(lang) })).sort((a, b) => {
|
38
|
-
if (a.status === SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {
|
39
|
-
return -1;
|
40
|
-
}
|
41
|
-
if (b.status === SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {
|
42
|
-
return 1;
|
1
|
+
import { __require as require_Symbol } from "./harmony136.mjs";
|
2
|
+
import { __require as require_getRawTag } from "./harmony137.mjs";
|
3
|
+
import { __require as require_objectToString } from "./harmony138.mjs";
|
4
|
+
var _baseGetTag;
|
5
|
+
var hasRequired_baseGetTag;
|
6
|
+
function require_baseGetTag() {
|
7
|
+
if (hasRequired_baseGetTag) return _baseGetTag;
|
8
|
+
hasRequired_baseGetTag = 1;
|
9
|
+
var Symbol = require_Symbol(), getRawTag = require_getRawTag(), objectToString = require_objectToString();
|
10
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
11
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
12
|
+
function baseGetTag(value) {
|
13
|
+
if (value == null) {
|
14
|
+
return value === void 0 ? undefinedTag : nullTag;
|
43
15
|
}
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
};
|
50
|
-
const isInProgressOrCreated = (status) => {
|
51
|
-
return [SidebarTaskStatuses.InProgress, SidebarTaskStatuses.Created].includes(status);
|
52
|
-
};
|
53
|
-
const isLanguageProgressCompleted = (task, language) => {
|
54
|
-
return isInProgressOrCreated(task.status) && isInProgressOrCreated(language.status) && (language.progress ?? 0) >= 100;
|
55
|
-
};
|
16
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
17
|
+
}
|
18
|
+
_baseGetTag = baseGetTag;
|
19
|
+
return _baseGetTag;
|
20
|
+
}
|
56
21
|
export {
|
57
|
-
|
58
|
-
getTaskLanguages,
|
59
|
-
isLanguageProgressCompleted,
|
60
|
-
resolveStatus,
|
61
|
-
tagColor
|
22
|
+
require_baseGetTag as __require
|
62
23
|
};
|
63
24
|
//# sourceMappingURL=harmony131.mjs.map
|
package/dist/harmony131.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony131.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony131.mjs","sources":["../node_modules/lodash/_baseGetTag.js"],"sourcesContent":["var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AAAA,MAAI,SAASA,eAAoB,GAC7B,YAAYC,kBAAuB,GACnC,iBAAiBC,uBAA4B;AAGjD,MAAI,UAAU,iBACV,eAAe;AAGnB,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,WAAW,OAAO;AACzB,QAAI,SAAS,MAAM;AACjB,aAAO,UAAU,SAAY,eAAe;AAAA,IAChD;AACE,WAAQ,kBAAkB,kBAAkB,OAAO,KAAK,IACpD,UAAU,KAAK,IACf,eAAe,KAAK;AAAA,EAC1B;AAEA,gBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony132.cjs
CHANGED
@@ -1,21 +1,15 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
exports.default = styles;
|
16
|
-
exports.languagesTable = languagesTable;
|
17
|
-
exports.metadata = metadata;
|
18
|
-
exports.taskContainer = taskContainer;
|
19
|
-
exports.taskDescription = taskDescription;
|
20
|
-
exports.taskTitle = taskTitle;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
var isObjectLike_1;
|
4
|
+
var hasRequiredIsObjectLike;
|
5
|
+
function requireIsObjectLike() {
|
6
|
+
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
7
|
+
hasRequiredIsObjectLike = 1;
|
8
|
+
function isObjectLike(value) {
|
9
|
+
return value != null && typeof value == "object";
|
10
|
+
}
|
11
|
+
isObjectLike_1 = isObjectLike;
|
12
|
+
return isObjectLike_1;
|
13
|
+
}
|
14
|
+
exports.__require = requireIsObjectLike;
|
21
15
|
//# sourceMappingURL=harmony132.cjs.map
|
package/dist/harmony132.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony132.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony132.cjs","sources":["../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;;;AAwBA,WAAS,aAAa,OAAO;AAC3B,WAAO,SAAS,QAAQ,OAAO,SAAS;AAAA,EAC1C;AAEA,mBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony132.mjs
CHANGED
@@ -1,21 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
};
|
1
|
+
var isObjectLike_1;
|
2
|
+
var hasRequiredIsObjectLike;
|
3
|
+
function requireIsObjectLike() {
|
4
|
+
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
5
|
+
hasRequiredIsObjectLike = 1;
|
6
|
+
function isObjectLike(value) {
|
7
|
+
return value != null && typeof value == "object";
|
8
|
+
}
|
9
|
+
isObjectLike_1 = isObjectLike;
|
10
|
+
return isObjectLike_1;
|
11
|
+
}
|
13
12
|
export {
|
14
|
-
|
15
|
-
languagesTable,
|
16
|
-
metadata,
|
17
|
-
taskContainer,
|
18
|
-
taskDescription,
|
19
|
-
taskTitle
|
13
|
+
requireIsObjectLike as __require
|
20
14
|
};
|
21
15
|
//# sourceMappingURL=harmony132.mjs.map
|
package/dist/harmony132.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony132.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony132.mjs","sources":["../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;AAwBA,WAAS,aAAa,OAAO;AAC3B,WAAO,SAAS,QAAQ,OAAO,SAAS;AAAA,EAC1C;AAEA,mBAAiB;;;","x_google_ignoreList":[0]}
|