mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(editor): Extract @n8n/i18n package for internationalization (no-changelog) (#15466)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Container, Service } from '@n8n/di';
|
||||
import jwt from 'jsonwebtoken';
|
||||
import type { StringValue as TimeUnitValue } from 'ms';
|
||||
import { BINARY_ENCODING, UnexpectedError } from 'n8n-workflow';
|
||||
import type { INodeExecutionData, IBinaryData } from 'n8n-workflow';
|
||||
import { readFile, stat } from 'node:fs/promises';
|
||||
@@ -45,7 +46,7 @@ export class BinaryDataService {
|
||||
}
|
||||
}
|
||||
|
||||
createSignedToken(binaryData: IBinaryData, expiresIn = '1 day') {
|
||||
createSignedToken(binaryData: IBinaryData, expiresIn: TimeUnitValue = '1 day') {
|
||||
if (!binaryData.id) {
|
||||
throw new UnexpectedError('URL signing is not available in memory mode');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user