@teambit/objects 0.0.201 → 0.0.203

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.
@@ -80,7 +80,7 @@ export default class Lane extends BitObject {
80
80
  profileImage?: string;
81
81
  }): Lane;
82
82
  static parse(contents: string, hash: string): Lane;
83
- toBuffer(pretty?: boolean): Buffer;
83
+ toBuffer(pretty?: boolean): Buffer<ArrayBuffer>;
84
84
  addComponent(component: LaneComponent): void;
85
85
  removeComponentFromUpdateDependentsIfExist(componentId: ComponentID): void;
86
86
  addComponentToUpdateDependents(componentId: ComponentID): void;
@@ -268,7 +268,7 @@ export default class Component extends BitObject {
268
268
  private addDepsInfoFromDepsResolver;
269
269
  refs(): Ref[];
270
270
  validateBeforePersisting(componentStr: string): void;
271
- toBuffer(pretty: boolean): Buffer;
271
+ toBuffer(pretty: boolean): Buffer<ArrayBuffer>;
272
272
  /**
273
273
  * Clear data that is relevant only for the local scope and should not be moved to the remote scope
274
274
  */
@@ -2,8 +2,8 @@ import { BitObject } from '../objects';
2
2
  export default class Source extends BitObject {
3
3
  contents: Buffer;
4
4
  constructor(contents: Buffer);
5
- id(): Buffer;
6
- toBuffer(): Buffer;
5
+ id(): Buffer<ArrayBufferLike>;
6
+ toBuffer(): Buffer<ArrayBufferLike>;
7
7
  toString(): string;
8
8
  static parse(contents: Buffer): Source;
9
9
  static from(buffer: Buffer): Source;
@@ -25,6 +25,6 @@ export default class Symlink extends BitObject {
25
25
  realScope: string;
26
26
  };
27
27
  toBitId(): BitId;
28
- toBuffer(pretty?: boolean): Buffer;
28
+ toBuffer(pretty?: boolean): Buffer<ArrayBuffer>;
29
29
  static from(props: SymlinkProp): Symlink;
30
30
  }
@@ -187,7 +187,7 @@ export default class Version extends BitObject {
187
187
  static depEdgeFromArray(depEdgeArr: string[]): DepEdge;
188
188
  static flattenedEdgeToSource(flattenedEdges?: DepEdge[]): Source | undefined;
189
189
  static dependenciesGraphToSource(dependenciesGraph?: DependenciesGraph): Source | undefined;
190
- toObject(): import("lodash").Dictionary<string | boolean | string[] | Record<string, any> | Record<string, any>[] | Doclet[] | {
190
+ toObject(): import("lodash").Dictionary<string | boolean | Record<string, any> | string[] | Record<string, any>[] | Doclet[] | {
191
191
  file: any;
192
192
  relativePath: any;
193
193
  name: any;
@@ -7,7 +7,7 @@ export default class BitRawObject {
7
7
  _ref: string;
8
8
  constructor(buffer: Buffer, ref: string | null | undefined, type: string | null | undefined, content: Buffer | null | undefined, parsedContent: any | null | undefined);
9
9
  getParsedContent(): any;
10
- getString(pretty: boolean): string | Buffer;
10
+ getString(pretty: boolean): string | Buffer<ArrayBufferLike>;
11
11
  set ref(ref: string);
12
12
  get ref(): string;
13
13
  get id(): string;
package/package.json CHANGED
@@ -1,43 +1,40 @@
1
1
  {
2
2
  "name": "@teambit/objects",
3
- "version": "0.0.201",
3
+ "version": "0.0.203",
4
4
  "homepage": "https://bit.cloud/teambit/scope/objects",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.scope",
8
8
  "name": "objects",
9
- "version": "0.0.201"
9
+ "version": "0.0.203"
10
10
  },
11
11
  "dependencies": {
12
+ "@pnpm/dependency-path": "1001.1.0",
13
+ "@pnpm/lockfile.types": "^1002.0.0",
14
+ "semver": "7.7.1",
12
15
  "lodash": "4.17.21",
13
- "tar-stream": "2.2.0",
16
+ "uuid": "8.3.2",
17
+ "async-mutex": "0.3.1",
14
18
  "p-map-series": "2.1.0",
19
+ "tar-stream": "2.2.0",
15
20
  "is-relative-path": "2.0.0",
16
- "async-mutex": "0.3.1",
17
21
  "fs-extra": "10.0.0",
18
22
  "uid-number": "0.0.6",
19
- "@pnpm/dependency-path": "1001.1.0",
20
- "@pnpm/lockfile.types": "^1002.0.0",
21
- "semver": "7.7.1",
22
- "uuid": "8.3.2",
23
23
  "@teambit/harmony": "0.4.7",
24
+ "@teambit/cli": "0.0.1258",
24
25
  "@teambit/component-id": "1.2.4",
25
- "@teambit/component.snap-distance": "0.0.66",
26
- "@teambit/graph.cleargraph": "0.0.11",
27
- "@teambit/harmony.modules.concurrency": "0.0.15",
28
- "@teambit/legacy.logger": "0.0.24",
29
- "@teambit/legacy.scope": "0.0.65",
30
- "@teambit/toolbox.promise.map-pool": "0.0.6",
31
- "@teambit/legacy.constants": "0.0.14",
32
26
  "@teambit/legacy.utils": "0.0.23",
33
- "@teambit/toolbox.crypto.sha1": "0.0.7",
27
+ "@teambit/harmony.modules.get-basic-log": "0.0.66",
34
28
  "@teambit/bit-error": "0.0.404",
35
29
  "@teambit/component-version": "1.0.4",
36
- "@teambit/harmony.modules.in-memory-cache": "0.0.17",
37
- "@teambit/toolbox.fs.remove-empty-dir": "0.0.5",
30
+ "@teambit/component.snap-distance": "0.0.66",
31
+ "@teambit/config-store": "0.0.138",
38
32
  "@teambit/lane-id": "0.0.312",
39
- "@teambit/harmony.modules.get-basic-log": "0.0.66",
40
33
  "@teambit/legacy.cli.error": "0.0.24",
34
+ "@teambit/legacy.constants": "0.0.14",
35
+ "@teambit/legacy.logger": "0.0.24",
36
+ "@teambit/legacy.scope": "0.0.65",
37
+ "@teambit/toolbox.crypto.sha1": "0.0.7",
41
38
  "@teambit/component.sources": "0.0.117",
42
39
  "@teambit/legacy-bit-id": "1.1.3",
43
40
  "@teambit/legacy-component-log": "0.0.408",
@@ -46,18 +43,21 @@
46
43
  "@teambit/legacy.extension-data": "0.0.67",
47
44
  "@teambit/pkg.modules.semver-helper": "0.0.13",
48
45
  "@teambit/toolbox.array.duplications-finder": "0.0.3",
46
+ "@teambit/graph.cleargraph": "0.0.11",
49
47
  "@teambit/bit.get-bit-version": "0.0.6",
50
48
  "@teambit/semantics.doc-parser": "0.0.73",
51
- "@teambit/cli": "0.0.1257",
52
- "@teambit/graph": "1.0.694",
53
- "@teambit/config-store": "0.0.137"
49
+ "@teambit/harmony.modules.concurrency": "0.0.15",
50
+ "@teambit/toolbox.promise.map-pool": "0.0.6",
51
+ "@teambit/harmony.modules.in-memory-cache": "0.0.17",
52
+ "@teambit/toolbox.fs.remove-empty-dir": "0.0.5",
53
+ "@teambit/graph": "1.0.696"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/lodash": "4.14.165",
57
- "@types/fs-extra": "9.0.7",
58
56
  "@types/semver": "7.5.8",
57
+ "@types/lodash": "4.14.165",
59
58
  "@types/uuid": "8.3.4",
60
- "@teambit/harmony.envs.core-aspect-env": "0.0.74"
59
+ "@types/fs-extra": "9.0.7",
60
+ "@teambit/harmony.envs.core-aspect-env": "0.0.75"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "chai": "5.2.1",