@angular-devkit/core 10.1.0-next.0 → 10.1.0-next.4

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/README.md CHANGED
@@ -144,7 +144,7 @@ import { workspaces } from '@angular-devkit/core';
144
144
 
145
145
  async function demonstrate() {
146
146
  const host = workspaces.createWorkspaceHost(new NodeJsSyncHost());
147
- const workspace = await workspaces.readWorkspace('path/to/workspace/directory/', host);
147
+ const { workspace } = await workspaces.readWorkspace('path/to/workspace/directory/', host);
148
148
 
149
149
  const project = workspace.projects.get('my-app');
150
150
  if (!project) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "10.1.0-next.0",
3
+ "version": "10.1.0-next.4",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "ajv": "6.12.3",
17
17
  "fast-json-stable-stringify": "2.1.0",
18
18
  "magic-string": "0.25.7",
19
- "rxjs": "6.6.0",
19
+ "rxjs": "6.6.2",
20
20
  "source-map": "0.7.3"
21
21
  },
22
22
  "repository": {
@@ -200,7 +200,7 @@ class SimpleScheduler {
200
200
  * Create the job.
201
201
  * @private
202
202
  */
203
- _createJob(name, argument, handler, inboundBus, outboundBus, options) {
203
+ _createJob(name, argument, handler, inboundBus, outboundBus) {
204
204
  const schemaRegistry = this._schemaRegistry;
205
205
  const channelsSubject = new Map();
206
206
  const channels = new Map();
@@ -367,7 +367,7 @@ class SimpleScheduler {
367
367
  return handler(argument, context);
368
368
  })).subscribe(subscriber);
369
369
  }))));
370
- return this._createJob(name, argument, handler, inboundBus, outboundBus, options);
370
+ return this._createJob(name, argument, handler, inboundBus, outboundBus);
371
371
  }
372
372
  }
373
373
  exports.SimpleScheduler = SimpleScheduler;
@@ -38,7 +38,6 @@ var strategy;
38
38
  */
39
39
  function reuse(replayMessages = false) {
40
40
  let inboundBus = new rxjs_1.Subject();
41
- let runContext = null;
42
41
  let run = null;
43
42
  let state = null;
44
43
  return (handler, options) => {
@@ -61,7 +60,6 @@ var strategy;
61
60
  inboundBus = new rxjs_1.Subject();
62
61
  run = null;
63
62
  }), replayMessages ? operators_1.shareReplay() : operators_1.share());
64
- runContext = context;
65
63
  return run;
66
64
  };
67
65
  return Object.assign(newHandler, handler, options || {});
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- import Socket = NodeJS.Socket;
3
2
  export interface StreamCapabilities {
4
3
  readable: boolean;
5
4
  writable: boolean;
@@ -28,4 +27,4 @@ export interface StreamCapabilities {
28
27
  */
29
28
  columns: number | null;
30
29
  }
31
- export declare function getCapabilities(stream: Socket, isTerminalStream?: boolean): StreamCapabilities;
30
+ export declare function getCapabilities(stream: NodeJS.WriteStream, isTerminalStream?: boolean): StreamCapabilities;
@@ -10,31 +10,31 @@ exports.bgWhite = exports.bgCyan = exports.bgMagenta = exports.bgBlue = exports.
10
10
  */
11
11
  const caps = require("./caps");
12
12
  const colors_1 = require("./colors");
13
- const stdout = typeof process == 'object'
14
- ? caps.getCapabilities(process.stdout) : { colors: false };
15
- exports.reset = stdout.colors ? colors_1.colors.reset : (x) => x;
16
- exports.bold = stdout.colors ? colors_1.colors.bold : (x) => x;
17
- exports.dim = stdout.colors ? colors_1.colors.dim : (x) => x;
18
- exports.italic = stdout.colors ? colors_1.colors.italic : (x) => x;
19
- exports.underline = stdout.colors ? colors_1.colors.underline : (x) => x;
20
- exports.inverse = stdout.colors ? colors_1.colors.inverse : (x) => x;
21
- exports.hidden = stdout.colors ? colors_1.colors.hidden : (x) => x;
22
- exports.strikethrough = stdout.colors ? colors_1.colors.strikethrough : (x) => x;
23
- exports.black = stdout.colors ? colors_1.colors.black : (x) => x;
24
- exports.red = stdout.colors ? colors_1.colors.red : (x) => x;
25
- exports.green = stdout.colors ? colors_1.colors.green : (x) => x;
26
- exports.yellow = stdout.colors ? colors_1.colors.yellow : (x) => x;
27
- exports.blue = stdout.colors ? colors_1.colors.blue : (x) => x;
28
- exports.magenta = stdout.colors ? colors_1.colors.magenta : (x) => x;
29
- exports.cyan = stdout.colors ? colors_1.colors.cyan : (x) => x;
30
- exports.white = stdout.colors ? colors_1.colors.white : (x) => x;
31
- exports.grey = stdout.colors ? colors_1.colors.gray : (x) => x;
32
- exports.gray = stdout.colors ? colors_1.colors.gray : (x) => x;
33
- exports.bgBlack = stdout.colors ? colors_1.colors.bgBlack : (x) => x;
34
- exports.bgRed = stdout.colors ? colors_1.colors.bgRed : (x) => x;
35
- exports.bgGreen = stdout.colors ? colors_1.colors.bgGreen : (x) => x;
36
- exports.bgYellow = stdout.colors ? colors_1.colors.bgYellow : (x) => x;
37
- exports.bgBlue = stdout.colors ? colors_1.colors.bgBlue : (x) => x;
38
- exports.bgMagenta = stdout.colors ? colors_1.colors.bgMagenta : (x) => x;
39
- exports.bgCyan = stdout.colors ? colors_1.colors.bgCyan : (x) => x;
40
- exports.bgWhite = stdout.colors ? colors_1.colors.bgWhite : (x) => x;
13
+ const supportColors = typeof process === 'object' ? caps.getCapabilities(process.stdout).colors : false;
14
+ const identityFn = (x) => x;
15
+ exports.reset = supportColors ? colors_1.colors.reset : identityFn;
16
+ exports.bold = supportColors ? colors_1.colors.bold : identityFn;
17
+ exports.dim = supportColors ? colors_1.colors.dim : identityFn;
18
+ exports.italic = supportColors ? colors_1.colors.italic : identityFn;
19
+ exports.underline = supportColors ? colors_1.colors.underline : identityFn;
20
+ exports.inverse = supportColors ? colors_1.colors.inverse : identityFn;
21
+ exports.hidden = supportColors ? colors_1.colors.hidden : identityFn;
22
+ exports.strikethrough = supportColors ? colors_1.colors.strikethrough : identityFn;
23
+ exports.black = supportColors ? colors_1.colors.black : identityFn;
24
+ exports.red = supportColors ? colors_1.colors.red : identityFn;
25
+ exports.green = supportColors ? colors_1.colors.green : identityFn;
26
+ exports.yellow = supportColors ? colors_1.colors.yellow : identityFn;
27
+ exports.blue = supportColors ? colors_1.colors.blue : identityFn;
28
+ exports.magenta = supportColors ? colors_1.colors.magenta : identityFn;
29
+ exports.cyan = supportColors ? colors_1.colors.cyan : identityFn;
30
+ exports.white = supportColors ? colors_1.colors.white : identityFn;
31
+ exports.grey = supportColors ? colors_1.colors.gray : identityFn;
32
+ exports.gray = supportColors ? colors_1.colors.gray : identityFn;
33
+ exports.bgBlack = supportColors ? colors_1.colors.bgBlack : identityFn;
34
+ exports.bgRed = supportColors ? colors_1.colors.bgRed : identityFn;
35
+ exports.bgGreen = supportColors ? colors_1.colors.bgGreen : identityFn;
36
+ exports.bgYellow = supportColors ? colors_1.colors.bgYellow : identityFn;
37
+ exports.bgBlue = supportColors ? colors_1.colors.bgBlue : identityFn;
38
+ exports.bgMagenta = supportColors ? colors_1.colors.bgMagenta : identityFn;
39
+ exports.bgCyan = supportColors ? colors_1.colors.bgCyan : identityFn;
40
+ exports.bgWhite = supportColors ? colors_1.colors.bgWhite : identityFn;