Sfoglia il codice sorgente

Fixes build issues & updates deps

Changes from node-sass to sass
main
Eric Amodio 3 anni fa
parent
commit
50e504f9c8
5 ha cambiato i file con 43 aggiunte e 851 eliminazioni
  1. +2
    -2
      package.json
  2. +1
    -1
      src/git/shell.ts
  3. +2
    -2
      src/system/promise.ts
  4. +3
    -3
      src/system/string.ts
  5. +35
    -843
      yarn.lock

+ 2
- 2
package.json Vedi File

@ -9732,12 +9732,12 @@
"image-minimizer-webpack-plugin": "2.2.0",
"imagemin-webp": "6.0.0",
"mini-css-extract-plugin": "2.0.0",
"node-sass": "6.0.1",
"prettier": "2.3.2",
"sass": "1.35.1",
"sass-loader": "12.1.0",
"terser-webpack-plugin": "5.1.4",
"ts-loader": "9.2.3",
"typescript": "4.3.4",
"typescript": "4.3.5",
"vsce": "1.95.0",
"webpack": "5.41.1",
"webpack-bundle-analyzer": "4.4.2",

+ 1
- 1
src/git/shell.ts Vedi File

@ -213,7 +213,7 @@ export function run(
});
if (stdin != null) {
proc.stdin?.end(stdin, stdinEncoding ?? 'utf8');
proc.stdin?.end(stdin, (stdinEncoding ?? 'utf8') as BufferEncoding);
}
});
}

+ 2
- 2
src/system/promise.ts Vedi File

@ -125,7 +125,7 @@ export async function raceAll(
new Promise<CancellationErrorWithId<T, Promise<TPromise>>>(resolve =>
setTimeout(
() => resolve(new CancellationErrorWithId(id, promise, 'TIMED OUT')),
timeout!,
timeout,
),
),
]).then(p => [id, p]),
@ -141,7 +141,7 @@ export async function raceAll(
Promise.race([
p,
new Promise<CancellationError<Promise<TPromise>>>(resolve =>
setTimeout(() => resolve(new CancellationError(p, 'TIMED OUT')), timeout!),
setTimeout(() => resolve(new CancellationError(p, 'TIMED OUT')), timeout),
),
]),
),

+ 3
- 3
src/system/string.ts Vedi File

@ -1,5 +1,5 @@
'use strict';
import { createHash, HexBase64Latin1Encoding } from 'crypto';
import { BinaryToTextEncoding, createHash } from 'crypto';
import { isWindows } from '../git/shell';
const emptyStr = '';
@ -272,7 +272,7 @@ export function* lines(s: string, char: string = '\n'): IterableIterator
}
}
export function md5(s: string, encoding: HexBase64Latin1Encoding = 'base64'): string {
export function md5(s: string, encoding: BinaryToTextEncoding = 'base64'): string {
return createHash('md5').update(s).digest(encoding);
}
@ -363,7 +363,7 @@ export function sanitizeForFileSystem(s: string, replacement: string = '_') {
return s.replace(illegalCharsForFSRegex, replacement);
}
export function sha1(s: string, encoding: HexBase64Latin1Encoding = 'base64'): string {
export function sha1(s: string, encoding: BinaryToTextEncoding = 'base64'): string {
return createHash('sha1').update(s).digest(encoding);
}

+ 35
- 843
yarn.lock
File diff soppresso perché troppo grande
Vedi File


Caricamento…
Annulla
Salva