@wisemen/address 0.1.1 → 0.2.2

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/.eslintcache ADDED
@@ -0,0 +1 @@
1
+ [{"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/eslint.config.js":"1","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-column.ts":"2","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-command.builder.ts":"3","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-command.ts":"4","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-response.ts":"5","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address.builder.ts":"6","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address.ts":"7","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/index.ts":"8","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/is-address.validator.ts":"9","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/address-column.integration.test.ts":"10","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/is-address.validator.unit.test.ts":"11","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/sql/address-test.entity.ts":"12","/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/sql/datasource.ts":"13"},{"size":357,"mtime":1768820135069,"results":"14","hashOfConfig":"15"},{"size":887,"mtime":1768819954982,"results":"16","hashOfConfig":"17"},{"size":1035,"mtime":1768819954982,"results":"18","hashOfConfig":"17"},{"size":2013,"mtime":1768819804323,"results":"19","hashOfConfig":"17"},{"size":1420,"mtime":1768819804324,"results":"20","hashOfConfig":"17"},{"size":1352,"mtime":1768819954982,"results":"21","hashOfConfig":"17"},{"size":327,"mtime":1768819804324,"results":"22","hashOfConfig":"17"},{"size":411,"mtime":1768819804324,"results":"23","hashOfConfig":"17"},{"size":2949,"mtime":1768819954982,"results":"24","hashOfConfig":"17"},{"size":5341,"mtime":1768820137303,"results":"25","hashOfConfig":"26"},{"size":4618,"mtime":1768820202242,"results":"27","hashOfConfig":"26"},{"size":283,"mtime":1768820158704,"results":"28","hashOfConfig":"17"},{"size":370,"mtime":1768819804327,"results":"29","hashOfConfig":"17"},{"filePath":"30","messages":"31","suppressedMessages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"lwlkib",{"filePath":"33","messages":"34","suppressedMessages":"35","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1o8juwo",{"filePath":"36","messages":"37","suppressedMessages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","suppressedMessages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","suppressedMessages":"44","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","suppressedMessages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"48","messages":"49","suppressedMessages":"50","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","suppressedMessages":"53","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","suppressedMessages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","suppressedMessages":"59","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"x22v1o",{"filePath":"60","messages":"61","suppressedMessages":"62","errorCount":2,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"63","messages":"64","suppressedMessages":"65","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"66","messages":"67","suppressedMessages":"68","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/eslint.config.js",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-column.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-command.builder.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-command.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address-response.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address.builder.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/address.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/index.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/is-address.validator.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/address-column.integration.test.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/is-address.validator.unit.test.ts",["69","70"],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/sql/address-test.entity.ts",[],[],"/Users/kobe/Documents/Projects/project-template/node-core/packages/address/lib/tests/sql/datasource.ts",[],[],{"ruleId":"71","severity":2,"message":"72","line":137,"column":5,"nodeType":"73","messageId":"74","endLine":137,"endColumn":57},{"ruleId":"75","severity":2,"message":"76","line":137,"column":54,"nodeType":"77","messageId":"78","endLine":137,"endColumn":57,"suggestions":"79"},"@typescript-eslint/no-unsafe-assignment","Unsafe assignment of an `any` value.","AssignmentExpression","anyAssignment","@typescript-eslint/no-explicit-any","Unexpected any. Specify a different type.","TSAnyKeyword","unexpectedAny",["80","81"],{"messageId":"82","fix":"83","desc":"84"},{"messageId":"85","fix":"86","desc":"87"},"suggestUnknown",{"range":"88","text":"89"},"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.","suggestNever",{"range":"90","text":"91"},"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",[4392,4395],"unknown",[4392,4395],"never"]
@@ -3,12 +3,12 @@ import { AddressCommand } from './address-command.js';
3
3
  export declare class AddressCommandBuilder {
4
4
  private command;
5
5
  constructor();
6
- withCountry(country: string): this;
7
- withCity(city: string): this;
8
- withPostalCode(postalCode: string): this;
9
- withStreetName(streetName: string): this;
10
- withStreetNumber(streetNumber: string): this;
11
- withUnit(unit: string): this;
12
- withCoordinates(coordinates: CoordinatesCommand): this;
6
+ withCountry(country: string | null): this;
7
+ withCity(city: string | null): this;
8
+ withPostalCode(postalCode: string | null): this;
9
+ withStreetName(streetName: string | null): this;
10
+ withStreetNumber(streetNumber: string | null): this;
11
+ withUnit(unit: string | null): this;
12
+ withCoordinates(coordinates: CoordinatesCommand | null): this;
13
13
  build(): AddressCommand;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"address-command.builder.js","sourceRoot":"","sources":["../lib/address-command.builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,OAAO,qBAAqB;IACxB,OAAO,CAAgB;IAE/B;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,EAAE,CAAA;IACrC,CAAC;IAED,WAAW,CAAE,OAAe;QAC1B,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;QAE9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAY;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAkB;QAChC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAkB;QAChC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,gBAAgB,CAAE,YAAoB;QACpC,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;QAExC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAY;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe,CAAE,WAA+B;QAC9C,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAA;QAEtC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF"}
1
+ {"version":3,"file":"address-command.builder.js","sourceRoot":"","sources":["../lib/address-command.builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,OAAO,qBAAqB;IACxB,OAAO,CAAgB;IAE/B;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,EAAE,CAAA;IACrC,CAAC;IAED,WAAW,CAAE,OAAsB;QACjC,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;QAE9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAmB;QAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAyB;QACvC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,cAAc,CAAE,UAAyB;QACvC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA;QAEpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,gBAAgB,CAAE,YAA2B;QAC3C,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAA;QAExC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,QAAQ,CAAE,IAAmB;QAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAA;QAExB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe,CAAE,WAAsC;QACrD,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,WAAW,CAAA;QAEtC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK;QACH,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF"}
@@ -8,43 +8,43 @@ export class AddressCommandBuilder {
8
8
  this.command = new AddressCommand()
9
9
  }
10
10
 
11
- withCountry (country: string): this {
11
+ withCountry (country: string | null): this {
12
12
  this.command.country = country
13
13
 
14
14
  return this
15
15
  }
16
16
 
17
- withCity (city: string): this {
17
+ withCity (city: string | null): this {
18
18
  this.command.city = city
19
19
 
20
20
  return this
21
21
  }
22
22
 
23
- withPostalCode (postalCode: string): this {
23
+ withPostalCode (postalCode: string | null): this {
24
24
  this.command.postalCode = postalCode
25
25
 
26
26
  return this
27
27
  }
28
28
 
29
- withStreetName (streetName: string): this {
29
+ withStreetName (streetName: string | null): this {
30
30
  this.command.streetName = streetName
31
31
 
32
32
  return this
33
33
  }
34
34
 
35
- withStreetNumber (streetNumber: string): this {
35
+ withStreetNumber (streetNumber: string | null): this {
36
36
  this.command.streetNumber = streetNumber
37
37
 
38
38
  return this
39
39
  }
40
40
 
41
- withUnit (unit: string): this {
41
+ withUnit (unit: string | null): this {
42
42
  this.command.unit = unit
43
43
 
44
44
  return this
45
45
  }
46
46
 
47
- withCoordinates (coordinates: CoordinatesCommand): this {
47
+ withCoordinates (coordinates: CoordinatesCommand | null): this {
48
48
  this.command.coordinates = coordinates
49
49
 
50
50
  return this
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "@wisemen/address",
3
- "version": "0.1.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "exports": {
6
- ".": "./lib/index.ts"
6
+ ".": "./dist/index.js"
7
7
  },
8
8
  "imports": {
9
9
  "#*": "./lib/*"
10
10
  },
11
+ "scripts": {
12
+ "prebuild": "rm -rf ./dist",
13
+ "clean": "rm -rf ./dist",
14
+ "build": "tsc",
15
+ "pretest": "npm run clean && npm run build",
16
+ "test": "node --env-file=.env.test --test ./**/*.test.js",
17
+ "lint": "eslint --cache",
18
+ "prerelease": "npm run build",
19
+ "release": "pnpx release-it"
20
+ },
11
21
  "peerDependencies": {
12
22
  "@nestjs/common": "^11.1.12",
13
23
  "@nestjs/swagger": "^11.2.5",
@@ -30,15 +40,5 @@
30
40
  "repository": {
31
41
  "type": "git",
32
42
  "url": "git@github.com:wisemen-digital/node-core.git"
33
- },
34
- "scripts": {
35
- "prebuild": "rm -rf ./dist",
36
- "clean": "rm -rf ./dist",
37
- "build": "tsc",
38
- "pretest": "npm run clean && npm run build",
39
- "test": "node --env-file=.env.test --test ./**/*.test.js",
40
- "lint": "eslint --cache",
41
- "prerelease": "npm run build",
42
- "release": "pnpx release-it"
43
43
  }
44
- }
44
+ }