mock-repository-provider 8.3.31 → 8.3.33

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
@@ -1,6 +1,5 @@
1
1
  [![npm](https://img.shields.io/npm/v/mock-repository-provider.svg)](https://www.npmjs.com/package/mock-repository-provider)
2
2
  [![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)
3
- [![Typed with TypeScript](https://flat.badgen.net/badge/icon/Typed?icon=typescript\&label\&labelColor=blue\&color=555555)](https://typescriptlang.org)
4
3
  [![bundlejs](https://deno.bundlejs.com/?q=mock-repository-provider\&badge=detailed)](https://bundlejs.com/?q=mock-repository-provider)
5
4
  [![downloads](http://img.shields.io/npm/dm/mock-repository-provider.svg?style=flat-square)](https://npmjs.org/package/mock-repository-provider)
6
5
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/mock-repository-provider.svg?style=flat-square)](https://github.com/arlac77/mock-repository-provider/issues)
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "mock-repository-provider",
3
- "version": "8.3.31",
3
+ "version": "8.3.33",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
+ "packageManager": "npm@11.6.0+sha512.77f3fb0dbbd881835d7bd1217deabdf7ed77fc4ec4f363df64fc3cb986404abf6c437661041080f5c5d225103508e7c9ea30cb2742b7e942675d05a10af2d7b9",
8
9
  "types": "./types/mock-repository-provider.d.mts",
9
10
  "exports": {
10
11
  ".": {
11
- "types": "./types/mock-repository-provider.d.mts",
12
12
  "default": "./src/mock-repository-provider.mjs"
13
13
  }
14
14
  },
@@ -25,35 +25,31 @@
25
25
  ],
26
26
  "license": "0BSD",
27
27
  "scripts": {
28
- "prepare": "node --run prepare:typescript",
29
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
30
28
  "test": "node --run test:ava",
31
29
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
32
30
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
33
31
  "docs": "documentation readme --section=API ./src**/*.mjs",
34
- "lint": "node --run lint:docs && node --run lint:typescript",
35
- "lint:docs": "documentation lint ./src**/*.mjs",
36
- "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
32
+ "lint": "node --run lint:docs",
33
+ "lint:docs": "documentation lint ./src**/*.mjs"
37
34
  },
38
35
  "dependencies": {
39
- "content-entry": "^14.2.3",
40
- "content-entry-filesystem": "^9.0.10",
41
- "globby": "^14.1.0",
36
+ "content-entry": "^14.2.5",
37
+ "content-entry-filesystem": "^9.0.11",
38
+ "globby": "^15.0.0",
42
39
  "micromatch": "^4.0.8",
43
40
  "one-time-execution-method": "^3.1.3",
44
- "repository-provider": "^35.5.10",
45
- "repository-provider-test-support": "^3.1.51"
41
+ "repository-provider": "^35.6.2",
42
+ "repository-provider-test-support": "^4.0.0"
46
43
  },
47
44
  "devDependencies": {
48
- "@types/node": "^24.1.0",
45
+ "@types/node": "^24.6.0",
49
46
  "ava": "^6.4.1",
50
47
  "c8": "^10.1.3",
51
48
  "documentation": "^14.0.3",
52
- "semantic-release": "^24.2.7",
53
- "typescript": "^5.8.3"
49
+ "semantic-release": "^24.2.9"
54
50
  },
55
51
  "engines": {
56
- "node": ">=22.17.1"
52
+ "node": ">=22.19.5"
57
53
  },
58
54
  "repository": {
59
55
  "type": "git",
@@ -66,8 +62,7 @@
66
62
  "template": {
67
63
  "inheritFrom": [
68
64
  "arlac77/template-arlac77-github",
69
- "arlac77/template-javascript-component",
70
- "arlac77/template-typescript"
65
+ "arlac77/template-javascript-component"
71
66
  ]
72
67
  }
73
68
  }
@@ -1,88 +0,0 @@
1
- export class MockBranch extends Branch {
2
- maybeEntry(name: any): Promise<StringContentEntry>;
3
- entry(name: any): Promise<StringContentEntry>;
4
- entries(patterns?: string): AsyncGenerator<StringContentEntry, void, unknown>;
5
- get files(): any;
6
- }
7
- /**
8
- *
9
- */
10
- export class MockRepository extends Repository {
11
- get files(): any;
12
- initializeBranches(): Promise<void>;
13
- }
14
- export class MockFileSystemBranch extends Branch {
15
- maybeEntry(name: any): Promise<FileSystemEntry>;
16
- entry(name: any): Promise<FileSystemEntry>;
17
- entries(matchingPatterns?: string[]): AsyncGenerator<FileSystemEntry, void, unknown>;
18
- get files(): any;
19
- }
20
- export class MockFileSystemRepository extends Repository {
21
- initializeBranches(): Promise<Branch>;
22
- }
23
- /**
24
- * @param {Object} files
25
- */
26
- export class MockProvider extends MultiGroupProvider {
27
- static get attributes(): {
28
- repositoryName: {
29
- default: string;
30
- };
31
- delay: {
32
- type: string;
33
- default: number;
34
- };
35
- repositoryBases: {
36
- default: string[];
37
- };
38
- name: {
39
- env: string;
40
- type: string;
41
- isKey: boolean;
42
- writable: boolean;
43
- mandatory: boolean;
44
- collection: boolean;
45
- private?: boolean;
46
- depends?: string;
47
- description?: string;
48
- default?: any;
49
- set?: Function;
50
- get?: Function;
51
- };
52
- url: import("pacc").AttributeDefinition;
53
- priority: import("pacc").AttributeDefinition;
54
- messageDestination: {
55
- type: string;
56
- default: Console;
57
- writable: boolean;
58
- private: boolean;
59
- isKey: boolean;
60
- mandatory: boolean;
61
- collection: boolean;
62
- depends?: string;
63
- description?: string;
64
- set?: Function;
65
- get?: Function;
66
- env?: string[] | string;
67
- };
68
- id: import("pacc").AttributeDefinition;
69
- description: import("pacc").AttributeDefinition;
70
- };
71
- constructor(files: any, options: any);
72
- waitDelay(delay?: any): Promise<any>;
73
- /**
74
- * @return {string} 'http://mock-provider.com'
75
- */
76
- get url(): string;
77
- get branchClass(): typeof MockBranch | typeof MockFileSystemBranch;
78
- get repositoryClass(): typeof MockRepository | typeof MockFileSystemRepository;
79
- initializeRepositories(): Promise<void>;
80
- repository(name: any): Promise<Repository>;
81
- branch(name: any): Promise<Branch>;
82
- }
83
- export default MockProvider;
84
- import { Branch } from "repository-provider";
85
- import { StringContentEntry } from "content-entry";
86
- import { Repository } from "repository-provider";
87
- import { FileSystemEntry } from "content-entry-filesystem";
88
- import { MultiGroupProvider } from "repository-provider";