@akala/pm 5.2.37 → 5.2.39

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.
Files changed (142) hide show
  1. package/changelog.md +1 -1
  2. package/dist/cjs/cli-helper.d.ts +1 -1
  3. package/dist/cjs/cli-helper.js +1 -1
  4. package/dist/cjs/commands/$init.d.ts +1 -1
  5. package/dist/cjs/commands/$init.js +1 -1
  6. package/dist/cjs/commands/bridge.d.ts +1 -1
  7. package/dist/cjs/commands/bridge.js +1 -1
  8. package/dist/cjs/commands/config.d.ts +1 -1
  9. package/dist/cjs/commands/config.js +1 -1
  10. package/dist/cjs/commands/connect.d.ts +1 -1
  11. package/dist/cjs/commands/connect.js +1 -1
  12. package/dist/cjs/commands/discover.d.ts +1 -1
  13. package/dist/cjs/commands/discover.js +1 -1
  14. package/dist/cjs/commands/install.d.ts +1 -1
  15. package/dist/cjs/commands/install.js +1 -1
  16. package/dist/cjs/commands/link.d.ts +1 -1
  17. package/dist/cjs/commands/link.js +1 -1
  18. package/dist/cjs/commands/log.d.ts +1 -1
  19. package/dist/cjs/commands/log.js +1 -1
  20. package/dist/cjs/commands/ls.d.ts +1 -1
  21. package/dist/cjs/commands/ls.js +1 -1
  22. package/dist/cjs/commands/map.d.ts +1 -1
  23. package/dist/cjs/commands/map.js +1 -1
  24. package/dist/cjs/commands/name.d.ts +1 -1
  25. package/dist/cjs/commands/name.js +1 -1
  26. package/dist/cjs/commands/plugin/add.d.ts +1 -1
  27. package/dist/cjs/commands/plugin/add.js +1 -1
  28. package/dist/cjs/commands/plugin/remove.d.ts +1 -1
  29. package/dist/cjs/commands/plugin/remove.js +1 -1
  30. package/dist/cjs/commands/proxy.d.ts +1 -1
  31. package/dist/cjs/commands/proxy.js +1 -1
  32. package/dist/cjs/commands/ready.d.ts +1 -1
  33. package/dist/cjs/commands/ready.js +1 -1
  34. package/dist/cjs/commands/reload-metadata.d.ts +1 -1
  35. package/dist/cjs/commands/reload-metadata.js +1 -1
  36. package/dist/cjs/commands/restart.d.ts +1 -1
  37. package/dist/cjs/commands/restart.js +1 -1
  38. package/dist/cjs/commands/start.d.ts +1 -1
  39. package/dist/cjs/commands/start.js +1 -1
  40. package/dist/cjs/commands/status.d.ts +1 -1
  41. package/dist/cjs/commands/status.js +1 -1
  42. package/dist/cjs/commands/stop.d.ts +1 -1
  43. package/dist/cjs/commands/stop.js +1 -1
  44. package/dist/cjs/commands/update.d.ts +1 -1
  45. package/dist/cjs/commands/update.js +1 -1
  46. package/dist/cjs/commands/version.d.ts +1 -1
  47. package/dist/cjs/commands/version.js +1 -1
  48. package/dist/cjs/container.d.ts +1 -1
  49. package/dist/cjs/container.js +1 -1
  50. package/dist/cjs/index.d.ts +1 -1
  51. package/dist/cjs/index.js +1 -1
  52. package/dist/cjs/ipc-adapter.d.ts +1 -1
  53. package/dist/cjs/ipc-adapter.js +1 -1
  54. package/dist/cjs/new-line-prefixer.d.ts +1 -1
  55. package/dist/cjs/new-line-prefixer.js +1 -1
  56. package/dist/cjs/npm-helper.d.ts +1 -1
  57. package/dist/cjs/npm-helper.js +1 -1
  58. package/dist/cjs/sidecar.d.ts +1 -1
  59. package/dist/cjs/sidecar.js +1 -1
  60. package/dist/cjs/standalone.d.ts +1 -1
  61. package/dist/cjs/standalone.js +1 -1
  62. package/dist/cjs/state.d.ts +1 -1
  63. package/dist/cjs/state.js +1 -1
  64. package/dist/cjs/test/pwet.d.ts +1 -1
  65. package/dist/cjs/test/pwet.js +1 -1
  66. package/dist/cjs/yarn-helper.d.ts +1 -1
  67. package/dist/cjs/yarn-helper.js +1 -1
  68. package/dist/esm/akala.d.mts +1 -1
  69. package/dist/esm/akala.mjs +1 -1
  70. package/dist/esm/cli-helper.d.ts +1 -1
  71. package/dist/esm/cli-helper.js +1 -1
  72. package/dist/esm/cli.d.ts +1 -1
  73. package/dist/esm/cli.js +1 -1
  74. package/dist/esm/commands/$init.d.ts +1 -1
  75. package/dist/esm/commands/$init.js +1 -1
  76. package/dist/esm/commands/bridge.d.ts +1 -1
  77. package/dist/esm/commands/bridge.js +1 -1
  78. package/dist/esm/commands/config.d.ts +1 -1
  79. package/dist/esm/commands/config.js +1 -1
  80. package/dist/esm/commands/connect.d.ts +1 -1
  81. package/dist/esm/commands/connect.js +1 -1
  82. package/dist/esm/commands/discover.d.ts +1 -1
  83. package/dist/esm/commands/discover.js +1 -1
  84. package/dist/esm/commands/install.d.ts +1 -1
  85. package/dist/esm/commands/install.js +1 -1
  86. package/dist/esm/commands/link.d.ts +1 -1
  87. package/dist/esm/commands/link.js +1 -1
  88. package/dist/esm/commands/log.d.ts +1 -1
  89. package/dist/esm/commands/log.js +1 -1
  90. package/dist/esm/commands/ls.d.ts +1 -1
  91. package/dist/esm/commands/ls.js +1 -1
  92. package/dist/esm/commands/map.d.ts +1 -1
  93. package/dist/esm/commands/map.js +1 -1
  94. package/dist/esm/commands/name.d.ts +1 -1
  95. package/dist/esm/commands/name.js +1 -1
  96. package/dist/esm/commands/plugin/add.d.ts +1 -1
  97. package/dist/esm/commands/plugin/add.js +1 -1
  98. package/dist/esm/commands/plugin/remove.d.ts +1 -1
  99. package/dist/esm/commands/plugin/remove.js +1 -1
  100. package/dist/esm/commands/proxy.d.ts +1 -1
  101. package/dist/esm/commands/proxy.js +1 -1
  102. package/dist/esm/commands/ready.d.ts +1 -1
  103. package/dist/esm/commands/ready.js +1 -1
  104. package/dist/esm/commands/reload-metadata.d.ts +1 -1
  105. package/dist/esm/commands/reload-metadata.js +1 -1
  106. package/dist/esm/commands/restart.d.ts +1 -1
  107. package/dist/esm/commands/restart.js +1 -1
  108. package/dist/esm/commands/start.d.ts +1 -1
  109. package/dist/esm/commands/start.js +1 -1
  110. package/dist/esm/commands/status.d.ts +1 -1
  111. package/dist/esm/commands/status.js +1 -1
  112. package/dist/esm/commands/stop.d.ts +1 -1
  113. package/dist/esm/commands/stop.js +1 -1
  114. package/dist/esm/commands/update.d.ts +1 -1
  115. package/dist/esm/commands/update.js +1 -1
  116. package/dist/esm/commands/version.d.ts +1 -1
  117. package/dist/esm/commands/version.js +1 -1
  118. package/dist/esm/container.d.ts +1 -1
  119. package/dist/esm/container.js +1 -1
  120. package/dist/esm/fork.d.ts +1 -1
  121. package/dist/esm/fork.js +1 -1
  122. package/dist/esm/index.d.ts +1 -1
  123. package/dist/esm/index.js +1 -1
  124. package/dist/esm/ipc-adapter.d.ts +1 -1
  125. package/dist/esm/ipc-adapter.js +1 -1
  126. package/dist/esm/new-line-prefixer.d.ts +1 -1
  127. package/dist/esm/new-line-prefixer.js +1 -1
  128. package/dist/esm/npm-helper.d.ts +1 -1
  129. package/dist/esm/npm-helper.js +1 -1
  130. package/dist/esm/sidecar.d.ts +1 -1
  131. package/dist/esm/sidecar.js +1 -1
  132. package/dist/esm/standalone.d.ts +1 -1
  133. package/dist/esm/standalone.js +1 -1
  134. package/dist/esm/state.d.ts +1 -1
  135. package/dist/esm/state.js +1 -1
  136. package/dist/esm/test/pwet.d.ts +1 -1
  137. package/dist/esm/test/pwet.js +1 -1
  138. package/dist/esm/yarn-helper.d.ts +1 -1
  139. package/dist/esm/yarn-helper.js +1 -1
  140. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  141. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  142. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import npmHelper from '../npm-helper.js';
1
+ import npmHelper from '../npm-helper.js';
2
2
  import yarnHelper, { hasYarn } from '../yarn-helper.js';
3
3
  export default async function link(packageName, folder, pm) {
4
4
  if (await hasYarn(folder))
@@ -1,4 +1,4 @@
1
- /// <reference types="node" resolution-mode="require"/>
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { Readable } from "stream";
3
3
  import State from '../state.js';
4
4
  export default function log(this: State, name: string): Readable;
@@ -1,4 +1,4 @@
1
- import { PassThrough } from "stream";
1
+ import { PassThrough } from "stream";
2
2
  export default function log(name) {
3
3
  if (name == 'pm') {
4
4
  const pt = new PassThrough();
@@ -1,2 +1,2 @@
1
- import State from '../state.js';
1
+ import State from '../state.js';
2
2
  export default function ls(this: State): State['config']['containers'];
@@ -1,4 +1,4 @@
1
- export default function ls() {
1
+ export default function ls() {
2
2
  return this.config.containers;
3
3
  }
4
4
  //# sourceMappingURL=ls.js.map
@@ -1,4 +1,4 @@
1
- import State from '../state.js';
1
+ import State from '../state.js';
2
2
  export default function map<TName extends string>(this: State, name: TName, targetPath: string, cwd?: string, options?: {
3
3
  commandable?: boolean;
4
4
  stateless?: boolean;
@@ -1,4 +1,4 @@
1
- import { isAbsolute, resolve } from "path";
1
+ import { isAbsolute, resolve } from "path";
2
2
  export default async function map(name, targetPath, cwd, options) {
3
3
  if (!isAbsolute(targetPath))
4
4
  targetPath = resolve(cwd || process.cwd(), targetPath);
@@ -1 +1 @@
1
- export default function getRandomName(retry?: boolean): string;
1
+ export default function getRandomName(retry?: boolean): string;
@@ -1,4 +1,4 @@
1
- const left = [
1
+ const left = [
2
2
  "admiring",
3
3
  "adoring",
4
4
  "affectionate",
@@ -1,2 +1,2 @@
1
- import State from "../../state.js";
1
+ import State from "../../state.js";
2
2
  export default function (this: State, plugin: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- export default function (plugin) {
1
+ export default function (plugin) {
2
2
  this.config.plugins.push(plugin);
3
3
  return this.config.commit();
4
4
  }
@@ -1,2 +1,2 @@
1
- import State from "../../state.js";
1
+ import State from "../../state.js";
2
2
  export default function (this: State, plugin: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- export default function (plugin) {
1
+ export default function (plugin) {
2
2
  const indexOfPlugin = this.config.plugins.indexOf(plugin);
3
3
  if (indexOfPlugin > -1)
4
4
  this.config.plugins.splice(indexOfPlugin);
@@ -1,3 +1,3 @@
1
- import { SocketAdapter } from "@akala/json-rpc-ws";
1
+ import { SocketAdapter } from "@akala/json-rpc-ws";
2
2
  import State from "../state.js";
3
3
  export default function (this: State, name: string, socket: SocketAdapter): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { ErrorWithStatus } from "@akala/core";
1
+ import { ErrorWithStatus } from "@akala/core";
2
2
  import { randomUUID } from "crypto";
3
3
  export default async function (name, socket) {
4
4
  var cp = this.processes[name];
@@ -1,4 +1,4 @@
1
- import { Container } from '@akala/commands';
1
+ import { Container } from '@akala/commands';
2
2
  import pm from '../container.js';
3
3
  import State, { RunningContainer } from '../state.js';
4
4
  export default function ready(this: State, pm: pm.container & Container<State>, container: RunningContainer, standaloneContainer: Container<void>): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { registerCommands, SelfDefinedCommand } from '@akala/commands';
1
+ import { registerCommands, SelfDefinedCommand } from '@akala/commands';
2
2
  export default async function ready(pm, container, standaloneContainer) {
3
3
  if (standaloneContainer['process']) {
4
4
  container = standaloneContainer;
@@ -1,2 +1,2 @@
1
- import { Container } from "@akala/commands";
1
+ import { Container } from "@akala/commands";
2
2
  export default function (remoteContainer: Container<void>): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { updateCommands } from "@akala/commands";
1
+ import { updateCommands } from "@akala/commands";
2
2
  export default async function (remoteContainer) {
3
3
  const metadata = await remoteContainer.dispatch('$metadata', true);
4
4
  remoteContainer.name = metadata.name;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" resolution-mode="require"/>
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { StdioOptions } from "child_process";
3
3
  import pmContainer from '../container.js';
4
4
  import { CliContext } from "@akala/cli";
@@ -1,4 +1,4 @@
1
- export default async function restart(pm, name, context) {
1
+ export default async function restart(pm, name, context) {
2
2
  await pm.dispatch('stop', name);
3
3
  await pm.dispatch('start', name, context);
4
4
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="node" resolution-mode="require"/>
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { Container } from "@akala/commands";
3
3
  import State from '../state.js';
4
4
  import { StdioOptions } from "child_process";
@@ -1,4 +1,4 @@
1
- import { Container, Processors, Metadata, Cli, updateCommands } from "@akala/commands";
1
+ import { Container, Processors, Metadata, Cli, updateCommands } from "@akala/commands";
2
2
  import { spawn } from "child_process";
3
3
  import { Deferred, eachAsync } from "@akala/core";
4
4
  import { NewLinePrefixer } from "../new-line-prefixer.js";
@@ -1,4 +1,4 @@
1
- import State from '../state.js';
1
+ import State from '../state.js';
2
2
  export default function status(this: State, name?: string): {
3
3
  name: string;
4
4
  filter: string;
@@ -1,4 +1,4 @@
1
- export default function status(name) {
1
+ export default function status(name) {
2
2
  let processes = Object.values(this.processes);
3
3
  if (name)
4
4
  processes = processes.filter(p => p.name == name);
@@ -1,3 +1,3 @@
1
- import { Container } from "@akala/commands";
1
+ import { Container } from "@akala/commands";
2
2
  import State from '../state.js';
3
3
  export default function stop(this: State, name: string, container: Container<State>): Promise<void>;
@@ -1,4 +1,4 @@
1
- export default async function stop(name, container) {
1
+ export default async function stop(name, container) {
2
2
  await Promise.all(Object.values(this.processes).filter(p => p.name == name && p.process).map(cp => {
3
3
  return new Promise((resolve) => {
4
4
  if (cp.process && cp.running) {
@@ -1,3 +1,3 @@
1
- import State from '../state.js';
1
+ import State from '../state.js';
2
2
  import { Container } from "@akala/commands";
3
3
  export default function update(this: State, packageName: string, folder: string, pm: Container<State>): Promise<string>;
@@ -1,4 +1,4 @@
1
- import npmHelper from '../npm-helper.js';
1
+ import npmHelper from '../npm-helper.js';
2
2
  import yarnHelper, { hasYarn } from '../yarn-helper.js';
3
3
  export default async function update(packageName, folder, pm) {
4
4
  const version = await pm.dispatch('version', packageName, folder);
@@ -1,2 +1,2 @@
1
- import State from '../state.js';
1
+ import State from '../state.js';
2
2
  export default function version(this: State, packageName: string, folder: string): Promise<string>;
@@ -1,4 +1,4 @@
1
- import { join } from "path";
1
+ import { join } from "path";
2
2
  export default async function version(packageName, folder) {
3
3
  const path = folder || this.config.containers['pm'][0];
4
4
  let packageConfig;
@@ -1,4 +1,4 @@
1
- import { Argument0, Argument1, Argument2, Argument3 } from '@akala/core';
1
+ import { Argument0, Argument1, Argument2, Argument3 } from '@akala/core';
2
2
  declare namespace commands {
3
3
  interface container {
4
4
  dispatch(cmd: '$init', ...args: [Argument1<typeof import('./commands/$init.js').default>]): ReturnType<typeof import('./commands/$init.js').default>;
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=container.js.map
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  export {};
package/dist/esm/fork.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  import sms from 'source-map-support';
3
3
  sms.install();
4
4
  import * as path from 'path';
@@ -1,4 +1,4 @@
1
- import { Container, Metadata, ServeMetadata, ConnectionPreference } from "@akala/commands";
1
+ import { Container, Metadata, ServeMetadata, ConnectionPreference } from "@akala/commands";
2
2
  import definition from './container.js';
3
3
  type pmContainer = definition.container;
4
4
  export { pmContainer as Container };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Container, NetSocketAdapter, Processors, registerCommands, Cli } from "@akala/commands";
1
+ import { Container, NetSocketAdapter, Processors, registerCommands, Cli } from "@akala/commands";
2
2
  import { Socket } from "net";
3
3
  import { module } from "@akala/core";
4
4
  export class InteractError extends Error {
@@ -1,4 +1,4 @@
1
- /// <reference types="node" resolution-mode="require"/>
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  /// <reference types="webpack-env" />
3
3
  /// <reference types="node" resolution-mode="require"/>
4
4
  import { ChildProcess } from "child_process";
@@ -1,4 +1,4 @@
1
- export class IpcAdapter {
1
+ export class IpcAdapter {
2
2
  cp;
3
3
  get open() { return !!this.cp.pid; }
4
4
  pipe(socket) {
@@ -1,4 +1,4 @@
1
- /// <reference types="node" resolution-mode="require"/>
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  /// <reference types="node" resolution-mode="require"/>
3
3
  import { Transform, TransformCallback } from "stream";
4
4
  interface Options {
@@ -1,4 +1,4 @@
1
- import { Transform } from "stream";
1
+ import { Transform } from "stream";
2
2
  const colors = [6, 2, 3, 4, 5, 1];
3
3
  function selectColor(namespace) {
4
4
  let hash = 0;
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ declare const _default: {
2
2
  install(packageName: string, path?: string): Promise<void>;
3
3
  update(packageName: string, path?: string): Promise<void>;
4
4
  link(packageName: string, path?: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { platform } from "os";
1
+ import { platform } from "os";
2
2
  import { spawnAsync } from './cli-helper.js';
3
3
  // if (typeof (process.versions.pnp) != 'undefined')
4
4
  // {
@@ -1,4 +1,4 @@
1
- import { ConnectionPreference, Container } from "@akala/commands";
1
+ import { ConnectionPreference, Container } from "@akala/commands";
2
2
  import { SideCarConnectionPreference, Sidecar } from "./index.js";
3
3
  import pm from './container.js';
4
4
  export default function (options?: {
@@ -1,4 +1,4 @@
1
- import { connectByPreference, updateCommands } from "@akala/commands";
1
+ import { connectByPreference, updateCommands } from "@akala/commands";
2
2
  import { defaultOrders, connect } from "./index.js";
3
3
  import * as ac from '@akala/commands';
4
4
  let instance;
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  export {};
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  import sms from 'source-map-support';
3
3
  sms.install();
4
4
  import * as path from 'path';
@@ -1,4 +1,4 @@
1
- /// <reference types="node" resolution-mode="require"/>
1
+ /// <reference types="node" resolution-mode="require"/>
2
2
  import { Container } from "@akala/commands";
3
3
  import { ChildProcess } from "child_process";
4
4
  import { Deferred, SerializableObject } from "@akala/core";
package/dist/esm/state.js CHANGED
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- export default function pwet(a: string): Promise<void>;
1
+ export default function pwet(a: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- import interact from "../index.js";
1
+ import interact from "../index.js";
2
2
  export default async function pwet(a) {
3
3
  if (!a)
4
4
  interact('please specify a');
@@ -1,4 +1,4 @@
1
- export declare function hasYarn(path?: string): Promise<boolean>;
1
+ export declare function hasYarn(path?: string): Promise<boolean>;
2
2
  declare const _default: {
3
3
  install(packageName: string, path?: string): Promise<void>;
4
4
  update(packageName: string, path?: string): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { platform } from "os";
1
+ import { platform } from "os";
2
2
  import { stat } from 'fs';
3
3
  import { promisify } from 'util';
4
4
  import { spawnAsync } from './cli-helper.js';