@sequencemedia/hooks 1.0.298 → 1.0.300

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/.editorconfig CHANGED
@@ -4,7 +4,7 @@
4
4
  root = true
5
5
 
6
6
  # Unix-style newlines with a newline ending every file
7
- [*.{js}]
7
+ [*.{js,ts}]
8
8
  end_of_line = lf
9
9
  insert_final_newline = true
10
10
 
package/hooks.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ declare module '@sequencemedia/hooks' {
2
+ export function postCommit(): string
3
+ export const common = {
4
+ OPTIONS: {
5
+ maxBuffer: number
6
+ },
7
+ BRANCH: string,
8
+ PACKAGE_VERSION_CHANGES: RegExp,
9
+ HAS_STAGED_CHANGES: RegExp,
10
+ NOT_STAGED_CHANGES: RegExp,
11
+ trim (): string {},
12
+ use (): Promise<void> {},
13
+ getGitRemoteShowOriginHeadBranch (): Promise<void> {},
14
+ hasGitDiffHeadPackageVersionChanges (): Promise<void> {},
15
+ notGitDiffHeadPackageVersionChanges (): Promise<void> {},
16
+ hasStagedChanges (): Promise<void> {},
17
+ notStagedChanges (): Promise<void> {},
18
+ addPackageVersionChanges (): Promise<void> {},
19
+ patchPackageVersion (): Promise<void> {},
20
+ gitTag (a:string, m?:string): Promise<void>
21
+ }
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencemedia/hooks",
3
- "version": "1.0.298",
3
+ "version": "1.0.300",
4
4
  "description": "Git Hooks",
5
5
  "keywords": [
6
6
  "git",
@@ -21,7 +21,10 @@ export default async function postCommit () {
21
21
  if (await hasGitDiffHeadPackageVersionChanges(await getGitRemoteShowOriginHeadBranch())) return
22
22
 
23
23
  await patchPackageVersion()
24
- } catch ({ code = 'NONE', message = 'No error message defined' }) {
24
+ } catch ({
25
+ code = 'NONE',
26
+ message = 'No error message defined'
27
+ }) {
25
28
  error({ code, message })
26
29
  }
27
30
  }