@rentman/rm-core 11.0.2 → 11.0.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.
Files changed (143) hide show
  1. package/changelog.md +1438 -1420
  2. package/dist/rm-core.js +829 -816
  3. package/dist/rm-core.min.js +1 -1
  4. package/dist/types/src/classes/ApiFormatter.d.ts +79 -79
  5. package/dist/types/src/classes/ApiRequestService.d.ts +18 -18
  6. package/dist/types/src/classes/ApiResponseProcessor.d.ts +29 -29
  7. package/dist/types/src/classes/BusinessLogicManager/BusinessLogicManager.d.ts +98 -98
  8. package/dist/types/src/classes/BusinessLogicManager/BusinessLogicRule.d.ts +94 -94
  9. package/dist/types/src/classes/BusinessLogicManager/Customfield/CustomFieldTypeBusinessLogicRule.d.ts +18 -18
  10. package/dist/types/src/classes/BusinessLogicManager/Documents/DocumentTemplateBusinessLogicRule.d.ts +25 -25
  11. package/dist/types/src/classes/BusinessLogicManager/Exemplaar/ExemplaarAanschafdatumBusinessLogicRule.d.ts +14 -14
  12. package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurBetalingsconditieBusinessLogicRule.d.ts +20 -20
  13. package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurDatumBusinessLogicRule.d.ts +19 -19
  14. package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurNumberseriesBusinessLogicRule.d.ts +14 -14
  15. package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieNaaminternBusinessLogicRule.d.ts +18 -18
  16. package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieTwowayBusinessLogicRule.d.ts +14 -14
  17. package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalTelexemplarenBusinessLogicRule.d.ts +15 -15
  18. package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalTypeBusinessLogicRule.d.ts +18 -18
  19. package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalVerhuurBusinessLogicRule.d.ts +18 -18
  20. package/dist/types/src/classes/BusinessLogicManager/Materiaal/SurfaceArticleSizeBusinessLogicRule.d.ts +19 -19
  21. package/dist/types/src/classes/BusinessLogicManager/OfferteContract/OfferteContractDatumBusinessLogicRule.d.ts +26 -26
  22. package/dist/types/src/classes/BusinessLogicManager/PlanningPersoneelTransport/PlanningPersoneelTransportBusinessLogicRule.d.ts +29 -29
  23. package/dist/types/src/classes/BusinessLogicManager/Project/ProjectClientNoteBusinessLogicRule.d.ts +23 -23
  24. package/dist/types/src/classes/BusinessLogicManager/Reparatie/ReparatieExemplaarBusinessLogicRule.d.ts +14 -14
  25. package/dist/types/src/classes/BusinessLogicManager/Rol/RolDocumentAccessBusinessLogicRule.d.ts +18 -18
  26. package/dist/types/src/classes/BusinessLogicManager/Rol/RolEditOwnDataBusinessLogicRule.d.ts +18 -18
  27. package/dist/types/src/classes/BusinessLogicManager/Rol/RolFileAccessBusinessLogicRule.d.ts +18 -18
  28. package/dist/types/src/classes/BusinessLogicManager/Rol/RolPersoneelsplannerToegangBusinessLogicRule.d.ts +18 -18
  29. package/dist/types/src/classes/BusinessLogicManager/Rol/RolProjectenBewerkenBusinessLogicRule.d.ts +18 -18
  30. package/dist/types/src/classes/BusinessLogicManager/Rol/RolProjectenToegangBusinessLogicRule.d.ts +18 -18
  31. package/dist/types/src/classes/CacheSyncer.d.ts +70 -70
  32. package/dist/types/src/classes/ChangesCompilation.d.ts +33 -33
  33. package/dist/types/src/classes/ChangesDelta.d.ts +65 -65
  34. package/dist/types/src/classes/ChangesDeltaBase.d.ts +79 -79
  35. package/dist/types/src/classes/ChangesProcessor.d.ts +40 -40
  36. package/dist/types/src/classes/CollectionEntryService.d.ts +24 -24
  37. package/dist/types/src/classes/CollectionResourceService.d.ts +6 -6
  38. package/dist/types/src/classes/ColumnCache.d.ts +19 -19
  39. package/dist/types/src/classes/ColumnExpansion.d.ts +19 -19
  40. package/dist/types/src/classes/ColumnHandler.d.ts +20 -20
  41. package/dist/types/src/classes/ColumnInfo.d.ts +15 -15
  42. package/dist/types/src/classes/ColumnSet.d.ts +37 -37
  43. package/dist/types/src/classes/ColumnSubsetCache.d.ts +14 -14
  44. package/dist/types/src/classes/ColumnUtil.d.ts +108 -108
  45. package/dist/types/src/classes/ConversionMapService.d.ts +25 -25
  46. package/dist/types/src/classes/CreateRequest.d.ts +17 -17
  47. package/dist/types/src/classes/CreatedChangesDelta.d.ts +17 -17
  48. package/dist/types/src/classes/InternalChangesDelta.d.ts +44 -44
  49. package/dist/types/src/classes/ItemCache.d.ts +27 -27
  50. package/dist/types/src/classes/ItemCreateService.d.ts +18 -18
  51. package/dist/types/src/classes/ItemEntryService.d.ts +32 -32
  52. package/dist/types/src/classes/KeyService.d.ts +18 -18
  53. package/dist/types/src/classes/LockService.d.ts +28 -28
  54. package/dist/types/src/classes/ModuleChangesCompilation.d.ts +18 -18
  55. package/dist/types/src/classes/ParentChangesDelta.d.ts +41 -41
  56. package/dist/types/src/classes/QueryColumnExtractor.d.ts +18 -18
  57. package/dist/types/src/classes/QueryContainsLocalIdParser.d.ts +17 -17
  58. package/dist/types/src/classes/QueryLinkedToParser.d.ts +17 -17
  59. package/dist/types/src/classes/QueryLocallyMatchableParser.d.ts +20 -20
  60. package/dist/types/src/classes/QueryMatcher.d.ts +24 -24
  61. package/dist/types/src/classes/QueryParser.d.ts +25 -25
  62. package/dist/types/src/classes/QueryParserBase.d.ts +20 -20
  63. package/dist/types/src/classes/QueryParserIdUpdater.d.ts +17 -17
  64. package/dist/types/src/classes/QueryService.d.ts +12 -12
  65. package/dist/types/src/classes/RequestBuffer.d.ts +26 -26
  66. package/dist/types/src/classes/RequestBufferManager.d.ts +21 -21
  67. package/dist/types/src/classes/RequestColumnExpansion.d.ts +15 -15
  68. package/dist/types/src/classes/SocketMessageHandler.d.ts +34 -34
  69. package/dist/types/src/classes/TemplateCache.d.ts +64 -64
  70. package/dist/types/src/classes/Util.d.ts +28 -28
  71. package/dist/types/src/classes/cache/AbstractCache.d.ts +86 -86
  72. package/dist/types/src/classes/cache/CachedQueryHandlerBase.d.ts +69 -69
  73. package/dist/types/src/classes/cache/ItemHandlerBase.d.ts +102 -102
  74. package/dist/types/src/classes/cache/server/ServerCache.d.ts +78 -78
  75. package/dist/types/src/classes/cache/server/ServerCachedQueryHandler.d.ts +26 -26
  76. package/dist/types/src/classes/cache/server/ServerItemHandler.d.ts +43 -43
  77. package/dist/types/src/classes/cache/transaction/TransactionCache.d.ts +318 -318
  78. package/dist/types/src/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +39 -39
  79. package/dist/types/src/classes/cache/transaction/TransactionCollectionHandler.d.ts +24 -24
  80. package/dist/types/src/classes/cache/transaction/TransactionEventHandler.d.ts +21 -21
  81. package/dist/types/src/classes/cache/transaction/TransactionItemHandler.d.ts +90 -90
  82. package/dist/types/src/classes/cache/transaction/TransactionValidator.d.ts +33 -33
  83. package/dist/types/src/constants.d.ts +7 -7
  84. package/dist/types/src/core.d.ts +48 -48
  85. package/dist/types/src/factories/ApiResponseProcessorFactory.d.ts +6 -6
  86. package/dist/types/src/factories/CacheSyncerFactory.d.ts +10 -10
  87. package/dist/types/src/factories/ChangesCompilationFactory.d.ts +5 -5
  88. package/dist/types/src/factories/ChangesDeltaFactory.d.ts +13 -13
  89. package/dist/types/src/factories/ChangesProcessorFactory.d.ts +13 -13
  90. package/dist/types/src/factories/CollectionEntryFactory.d.ts +11 -11
  91. package/dist/types/src/factories/CollectionResourceFactory.d.ts +18 -18
  92. package/dist/types/src/factories/ColumnExpansionFactory.d.ts +7 -7
  93. package/dist/types/src/factories/ColumnInfoFactory.d.ts +7 -7
  94. package/dist/types/src/factories/ColumnSetFactory.d.ts +18 -18
  95. package/dist/types/src/factories/ColumnSubsetCacheFactory.d.ts +8 -8
  96. package/dist/types/src/factories/CreateRequestFactory.d.ts +9 -9
  97. package/dist/types/src/factories/ItemCacheFactory.d.ts +6 -6
  98. package/dist/types/src/factories/ItemEntryFactory.d.ts +12 -12
  99. package/dist/types/src/factories/ItemResourceFactory.d.ts +11 -11
  100. package/dist/types/src/factories/ModuleChangesCompilationFactory.d.ts +4 -4
  101. package/dist/types/src/factories/QueryMatcherFactory.d.ts +7 -7
  102. package/dist/types/src/factories/QueryParserFactory.d.ts +5 -5
  103. package/dist/types/src/factories/RequestColumnExpansionFactory.d.ts +8 -8
  104. package/dist/types/src/factories/TemplateFactory.d.ts +8 -8
  105. package/dist/types/src/factories/TransactionCacheFactory.d.ts +13 -13
  106. package/dist/types/src/index.d.ts +1 -1
  107. package/dist/types/src/interfaces/AbstractCacheDependencyInterface.d.ts +38 -38
  108. package/dist/types/src/interfaces/ApiRequestServiceInterface.d.ts +12 -12
  109. package/dist/types/src/interfaces/AuthInterface.d.ts +10 -10
  110. package/dist/types/src/interfaces/ErrorHandlerInterface.d.ts +6 -6
  111. package/dist/types/src/interfaces/ExceptionHandlerInterface.d.ts +3 -3
  112. package/dist/types/src/interfaces/LinkTreeServiceInterface.d.ts +4 -4
  113. package/dist/types/src/interfaces/PromiseLibraryInterface.d.ts +33 -33
  114. package/dist/types/src/interfaces/ServerCacheDependencyInterface.d.ts +5 -5
  115. package/dist/types/src/interfaces/SocketMessageInterface.d.ts +3 -3
  116. package/dist/types/src/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +17 -17
  117. package/dist/types/src/interfaces/TransactionItemHandlerDependencyInterface.d.ts +22 -22
  118. package/dist/types/src/internal.d.ts +128 -128
  119. package/dist/types/src/models/CachedQueryItem.d.ts +40 -40
  120. package/dist/types/src/models/CollectionEntry.d.ts +22 -22
  121. package/dist/types/src/models/CollectionOptions.d.ts +44 -44
  122. package/dist/types/src/models/CollectionResource.d.ts +87 -87
  123. package/dist/types/src/models/ItemEntry.d.ts +19 -19
  124. package/dist/types/src/models/ItemEntryOptions.d.ts +8 -8
  125. package/dist/types/src/models/ItemResource.d.ts +90 -90
  126. package/dist/types/src/models/Template.d.ts +11 -11
  127. package/dist/types/src/types/ItemTypesCollection.d.ts +345 -345
  128. package/dist/types/src/types/PromiseInterface.d.ts +2 -2
  129. package/dist/types/tests/integration/core.test.d.ts +1 -1
  130. package/dist/types/tests/integration/helpers/helpers.d.ts +31 -31
  131. package/dist/types/tests/integration/transactions/get_by.test.d.ts +1 -1
  132. package/dist/types/tests/integration/transactions/updates.test.d.ts +1 -1
  133. package/dist/types/tests/mocks/ApiMocked.d.ts +19 -19
  134. package/dist/types/tests/mocks/PromiseLibrary.mocked.d.ts +2 -2
  135. package/dist/types/tests/regression/RM4_17754.test.d.ts +1 -1
  136. package/dist/types/tests/regression/RM4_18216.test.d.ts +1 -1
  137. package/dist/types/tests/unit/query_contains_local_id_parser.test.d.ts +1 -0
  138. package/dist/types/tests/unit/query_linked_to_parser.test.d.ts +1 -1
  139. package/dist/types/tests/unit/query_matcher.test.d.ts +1 -1
  140. package/dist/types/tests/unit/query_parser_id_updater.test.d.ts +1 -0
  141. package/dist/types/tests/unit/query_service.test.d.ts +1 -1
  142. package/package.json +57 -57
  143. package/readme.md +16 -16
@@ -1,2 +1,2 @@
1
- export interface PromiseInterface<T> extends Promise<T> {
2
- }
1
+ export interface PromiseInterface<T> extends Promise<T> {
2
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,31 +1,31 @@
1
- import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LinkTreeServiceInterface, RmCore } from '../../../src';
2
- import { ApiMocked } from '../../mocks/ApiMocked';
3
- export declare const defaultMockAuthInterface: {
4
- getUserId: () => number;
5
- getUniqueUserId(): string;
6
- getUserAccountname(): string;
7
- getUserDisplayname(): string;
8
- };
9
- export declare const mockErrorHandler: {
10
- reject: (error: any) => import("../../../src").PromiseInterface<any>;
11
- notifyError(_error?: any): void;
12
- logError(_error?: any): void;
13
- };
14
- export declare const mockLinkTreeService: {
15
- get: () => {};
16
- };
17
- /**
18
- * Helper function that can be used to create a new core instance before each test is run.
19
- *
20
- * You can provide additional configuration as parameters to specify a specific mock ApiRequestServiceInterface,
21
- * AuthInterface, ErrorHandlerInterface or LinkTreeServiceInterface. These all have default values and are thus
22
- * not required, but depending on the test you want to run it is probably necessary to implement a specific one
23
- * for at least one of these parameters.
24
- *
25
- * @param api
26
- * @param authInterface
27
- * @param errorHandler
28
- * @param linkTreeService
29
- */
30
- export declare function beforeEachCoreConstructor(api?: ApiRequestServiceInterface, authInterface?: AuthInterface, errorHandler?: ErrorHandlerInterface, linkTreeService?: LinkTreeServiceInterface): RmCore;
31
- export declare const createNewApiMocked: (itemType: any, query: any, response: any, templates?: {}, fields?: {}) => ApiMocked;
1
+ import { ApiRequestServiceInterface, AuthInterface, ErrorHandlerInterface, LinkTreeServiceInterface, RmCore } from '../../../src';
2
+ import { ApiMocked } from '../../mocks/ApiMocked';
3
+ export declare const defaultMockAuthInterface: {
4
+ getUserId: () => number;
5
+ getUniqueUserId(): string;
6
+ getUserAccountname(): string;
7
+ getUserDisplayname(): string;
8
+ };
9
+ export declare const mockErrorHandler: {
10
+ reject: (error: any) => import("../../../src").PromiseInterface<any>;
11
+ notifyError(_error?: any): void;
12
+ logError(_error?: any): void;
13
+ };
14
+ export declare const mockLinkTreeService: {
15
+ get: () => {};
16
+ };
17
+ /**
18
+ * Helper function that can be used to create a new core instance before each test is run.
19
+ *
20
+ * You can provide additional configuration as parameters to specify a specific mock ApiRequestServiceInterface,
21
+ * AuthInterface, ErrorHandlerInterface or LinkTreeServiceInterface. These all have default values and are thus
22
+ * not required, but depending on the test you want to run it is probably necessary to implement a specific one
23
+ * for at least one of these parameters.
24
+ *
25
+ * @param api
26
+ * @param authInterface
27
+ * @param errorHandler
28
+ * @param linkTreeService
29
+ */
30
+ export declare function beforeEachCoreConstructor(api?: ApiRequestServiceInterface, authInterface?: AuthInterface, errorHandler?: ErrorHandlerInterface, linkTreeService?: LinkTreeServiceInterface): RmCore;
31
+ export declare const createNewApiMocked: (itemType: any, query: any, response: any, templates?: {}, fields?: {}) => ApiMocked;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,19 +1,19 @@
1
- import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
2
- import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, ApiRequestServiceInterface, PromiseInterface } from '../../src';
3
- export declare class ApiMocked implements ApiRequestServiceInterface {
4
- private templates;
5
- private fields;
6
- private itemTypeQueryToResponseMap;
7
- constructor(queryConfig: {
8
- key: string;
9
- response: any;
10
- }[], templates?: {}, fields?: {});
11
- template(itemType: ApiEnumItemType, _params: any): PromiseInterface<any>;
12
- create(_itemType: ApiEnumItemType, _itemId: ItemId, _values: any, _parentType?: ApiEnumItemType, _parentId?: ItemId): PromiseInterface<null>;
13
- delete(_itemType: ApiEnumItemType, _itemIds: ItemId[]): PromiseInterface<null>;
14
- updateItems(_itemType: ApiEnumItemType, _items: ApiRequestItemMap, _columns: ApiRequestColumnMap): PromiseInterface<null>;
15
- requestSkeleton(_params: any, _requestCanceler?: PromiseInterface<any>): PromiseInterface<null>;
16
- moveItems(_parentType: ApiEnumItemType, _parentId: ItemId, _items: ApiRequestMoveItems): PromiseInterface<null>;
17
- columns(itemType: ApiEnumItemType, _columns: ApiRequestColumnMap, _params?: any): PromiseInterface<any>;
18
- query(itemType: ApiEnumItemType, query: any, _columns: ApiRequestColumnMap, _limit?: ApiRequestLimit): PromiseInterface<any>;
19
- }
1
+ import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
2
+ import { ApiRequestColumnMap, ApiRequestItemMap, ApiRequestLimit, ApiRequestMoveItems, ApiRequestServiceInterface, PromiseInterface } from '../../src';
3
+ export declare class ApiMocked implements ApiRequestServiceInterface {
4
+ private templates;
5
+ private fields;
6
+ private itemTypeQueryToResponseMap;
7
+ constructor(queryConfig: {
8
+ key: string;
9
+ response: any;
10
+ }[], templates?: {}, fields?: {});
11
+ template(itemType: ApiEnumItemType, _params: any): PromiseInterface<any>;
12
+ create(_itemType: ApiEnumItemType, _itemId: ItemId, _values: any, _parentType?: ApiEnumItemType, _parentId?: ItemId): PromiseInterface<null>;
13
+ delete(_itemType: ApiEnumItemType, _itemIds: ItemId[]): PromiseInterface<null>;
14
+ updateItems(_itemType: ApiEnumItemType, _items: ApiRequestItemMap, _columns: ApiRequestColumnMap): PromiseInterface<null>;
15
+ requestSkeleton(_params: any, _requestCanceler?: PromiseInterface<any>): PromiseInterface<null>;
16
+ moveItems(_parentType: ApiEnumItemType, _parentId: ItemId, _items: ApiRequestMoveItems): PromiseInterface<null>;
17
+ columns(itemType: ApiEnumItemType, _columns: ApiRequestColumnMap, _params?: any): PromiseInterface<any>;
18
+ query(itemType: ApiEnumItemType, query: any, _columns: ApiRequestColumnMap, _limit?: ApiRequestLimit): PromiseInterface<any>;
19
+ }
@@ -1,2 +1,2 @@
1
- import { PromiseLibraryInterface } from '../../src';
2
- export declare const PromiseLibraryMocked: PromiseLibraryInterface;
1
+ import { PromiseLibraryInterface } from '../../src';
2
+ export declare const PromiseLibraryMocked: PromiseLibraryInterface;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@rentman/rm-core",
3
- "version": "11.0.2",
4
- "description": "Rentman core functionalities",
5
- "main": "./dist/rm-core.js",
6
- "types": "./dist/types/src/index.d.ts",
7
- "dependencies": {
8
- "@babel/runtime": "^7.8.3",
9
- "@rentman/backend-types": "*",
10
- "source-map-cli": "^1.0.0"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/rentmanpublic/frontend-core"
15
- },
16
- "devDependencies": {
17
- "@babel/core": "^7.8.3",
18
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
19
- "@babel/plugin-proposal-optional-chaining": "^7.8.3",
20
- "@babel/plugin-transform-classes": "^7.8.3",
21
- "@babel/plugin-transform-runtime": "^7.8.3",
22
- "@babel/preset-env": "^7.8.3",
23
- "@babel/runtime-corejs3": "^7.8.3",
24
- "@types/jest": "^26.0.15",
25
- "@types/moment": "^2.13.0",
26
- "@types/q": "^1.5.0",
27
- "babel-loader": "^8.0.6",
28
- "clean-webpack-plugin": "^0.1.19",
29
- "core-js": "^3.6.4",
30
- "jest": "^26.6.3",
31
- "ts-jest": "^26.4.4",
32
- "ts-loader": "^6.2.1",
33
- "typescript": "^3.9.2",
34
- "uglifyjs-webpack-plugin": "^1.2.5",
35
- "webpack": "4.41.2",
36
- "webpack-cli": "3.3.6",
37
- "webpack-merge": "^4.1.4",
38
- "@typescript-eslint/eslint-plugin": "^2.22.0",
39
- "@typescript-eslint/parser": "^2.22.0",
40
- "eslint": "^6.8.0",
41
- "eslint-plugin-import": "^2.20.1"
42
- },
43
- "files": [
44
- "dist"
45
- ],
46
- "scripts": {
47
- "prepublishOnly": "npm run bundle",
48
- "bundle-dev": "webpack --config webpack.dev.js",
49
- "bundle": "webpack --config webpack.prod.js",
50
- "type-check": "tsc --noEmit",
51
- "test": "jest",
52
- "jest-watch": "jest --watch",
53
- "coverage": "jest --coverage"
54
- },
55
- "author": "Martijn Welker <martijn@rentman.nl>",
56
- "license": "UNLICENSED"
57
- }
1
+ {
2
+ "name": "@rentman/rm-core",
3
+ "version": "11.0.4",
4
+ "description": "Rentman core functionalities",
5
+ "main": "./dist/rm-core.js",
6
+ "types": "./dist/types/src/index.d.ts",
7
+ "dependencies": {
8
+ "@babel/runtime": "^7.8.3",
9
+ "@rentman/backend-types": "*",
10
+ "source-map-cli": "^1.0.0"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/rentmanpublic/frontend-core"
15
+ },
16
+ "devDependencies": {
17
+ "@babel/core": "^7.8.3",
18
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
19
+ "@babel/plugin-proposal-optional-chaining": "^7.8.3",
20
+ "@babel/plugin-transform-classes": "^7.8.3",
21
+ "@babel/plugin-transform-runtime": "^7.8.3",
22
+ "@babel/preset-env": "^7.8.3",
23
+ "@babel/runtime-corejs3": "^7.8.3",
24
+ "@types/jest": "^26.0.15",
25
+ "@types/moment": "^2.13.0",
26
+ "@types/q": "^1.5.0",
27
+ "babel-loader": "^8.0.6",
28
+ "clean-webpack-plugin": "^0.1.19",
29
+ "core-js": "^3.6.4",
30
+ "jest": "^26.6.3",
31
+ "ts-jest": "^26.4.4",
32
+ "ts-loader": "^6.2.1",
33
+ "typescript": "^3.9.2",
34
+ "uglifyjs-webpack-plugin": "^1.2.5",
35
+ "webpack": "4.41.2",
36
+ "webpack-cli": "3.3.6",
37
+ "webpack-merge": "^4.1.4",
38
+ "@typescript-eslint/eslint-plugin": "^2.22.0",
39
+ "@typescript-eslint/parser": "^2.22.0",
40
+ "eslint": "^6.8.0",
41
+ "eslint-plugin-import": "^2.20.1"
42
+ },
43
+ "files": [
44
+ "dist"
45
+ ],
46
+ "scripts": {
47
+ "prepublishOnly": "npm run bundle",
48
+ "bundle-dev": "webpack --config webpack.dev.js",
49
+ "bundle": "webpack --config webpack.prod.js",
50
+ "type-check": "tsc --noEmit",
51
+ "test": "jest",
52
+ "jest-watch": "jest --watch",
53
+ "coverage": "jest --coverage"
54
+ },
55
+ "author": "Martijn Welker <martijn@rentman.nl>",
56
+ "license": "UNLICENSED"
57
+ }
package/readme.md CHANGED
@@ -1,16 +1,16 @@
1
- # Running a local test version
2
- 1. Make changes
3
- 2. run `npm run bundle-dev`
4
- 3. copy `dist` folder to
5
- - Frontend: `<project>/bower_components/rentman-rm-core/`
6
- - App: `<project>/node_modules/@rentman/rm-core/`
7
-
8
- # Publishing your local version
9
-
10
- (You have to be logged in as rentman-user on npm, run `npm whoami` to see who you are logged in as)
11
-
12
- 1. Make changes
13
- 2. Report changes in changelog
14
- 3. Update version in package.json and core.ts
15
- 4. Commit, tag and push changes
16
- 5. run `npm publish`
1
+ # Running a local test version
2
+ 1. Make changes
3
+ 2. run `npm run bundle-dev`
4
+ 3. copy `dist` folder to
5
+ - Frontend: `<project>/bower_components/rentman-rm-core/`
6
+ - App: `<project>/node_modules/@rentman/rm-core/`
7
+
8
+ # Publishing your local version
9
+
10
+ (You have to be logged in as rentman-user on npm, run `npm whoami` to see who you are logged in as)
11
+
12
+ 1. Make changes
13
+ 2. Report changes in changelog
14
+ 3. Update version in package.json and core.ts
15
+ 4. Commit, tag and push changes
16
+ 5. run `npm publish`