Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ packages/angular_devkit/schematics/package.json=-1133510866
packages/angular_devkit/schematics_cli/package.json=-2026655035
packages/ngtools/webpack/package.json=1644932095
packages/schematics/angular/package.json=251715148
pnpm-lock.yaml=252117316
pnpm-lock.yaml=1269083157
pnpm-workspace.yaml=-1264044456
tests/package.json=700948366
yarn.lock=-992195967
yarn.lock=1527869249
3 changes: 2 additions & 1 deletion packages/angular/build/src/tools/angular/uri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export function generateJitFileUri(file: string, type: 'style' | 'template') {
* @returns A string containing the full JIT namespace URI.
*/
export function generateJitInlineUri(data: string | Uint8Array, type: 'style' | 'template') {
return `${JIT_BASE_NAMESPACE}:${type}:inline;${Buffer.from(data).toString('base64')}`;
// Node.js types do not allow a string even though this is valid.
return `${JIT_BASE_NAMESPACE}:${type}:inline;${Buffer.from(data as Uint8Array).toString('base64')}`;
}

/**
Expand Down
Loading
Loading