Parcourir la source

Fixes build issues & updates deps

Changes from node-sass to sass
main
Eric Amodio il y a 3 ans
Parent
révision
50e504f9c8
5 fichiers modifiés avec 43 ajouts et 851 suppressions
  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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


Chargement…
Annuler
Enregistrer