@cimo/request 1.5.21 → 1.5.23

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
@@ -66,19 +66,19 @@ const data = {
66
66
  };
67
67
 
68
68
  cr.post("/test_post_json",
69
- {
70
- headers: {
71
- "Content-Type": "application/json"
72
- }
73
- },
74
- data
75
- )
76
- .then((data) => {
77
- // Response
78
- })
79
- .catch((error) => {
80
- // Error
81
- });
69
+ {
70
+ headers: {
71
+ "Content-Type": "application/json"
72
+ }
73
+ },
74
+ data
75
+ )
76
+ .then((data) => {
77
+ // Response
78
+ })
79
+ .catch((error) => {
80
+ // Error
81
+ });
82
82
 
83
83
  ...
84
84
 
@@ -88,19 +88,19 @@ formData.append("name", "test");
88
88
  // In case of file upload, just remove the headers content-type parameter.
89
89
 
90
90
  cr.post("/test_post_form-data",
91
- {
92
- headers: {
93
- "Content-Type": "multipart/form-data"
94
- }
95
- },
96
- formData
97
- )
98
- .then((data) => {
99
- // Response
100
- })
101
- .catch((error) => {
102
- // Error
103
- });
91
+ {
92
+ headers: {
93
+ "Content-Type": "multipart/form-data"
94
+ }
95
+ },
96
+ formData
97
+ )
98
+ .then((data) => {
99
+ // Response
100
+ })
101
+ .catch((error) => {
102
+ // Error
103
+ });
104
104
 
105
105
  ...
106
106
 
@@ -1,7 +1,7 @@
1
1
  import { TSESTree } from "@typescript-eslint/utils";
2
2
  import { RuleContext } from "@typescript-eslint/utils/dist/ts-eslint";
3
3
  export declare const rules: {
4
- "disallow-array-for-object-type": {
4
+ "no-array-assignment-for-object-type": {
5
5
  meta: {
6
6
  type: string;
7
7
  docs: {
@@ -9,11 +9,11 @@ export declare const rules: {
9
9
  recommended: boolean;
10
10
  };
11
11
  messages: {
12
- disallowArrayForObjectType: string;
12
+ noArrayAssignmentForObjectType: string;
13
13
  };
14
14
  schema: never[];
15
15
  };
16
- create(context: RuleContext<"disallowArrayForObjectType", []>): {
16
+ create(context: RuleContext<"noArrayAssignmentForObjectType", []>): {
17
17
  TSArrayType(node: TSESTree.TSArrayType): void;
18
18
  };
19
19
  };
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rules = void 0;
4
4
  const utils_1 = require("@typescript-eslint/utils");
5
5
  exports.rules = {
6
- "disallow-array-for-object-type": {
6
+ "no-array-assignment-for-object-type": {
7
7
  meta: {
8
8
  type: "problem",
9
9
  docs: {
10
- description: "Disallow array for object type.",
10
+ description: "Safe array assignment for object type.",
11
11
  recommended: false
12
12
  },
13
13
  messages: {
14
- disallowArrayForObjectType: "Array for object type are disallowed."
14
+ noArrayAssignmentForObjectType: "Array assign for object type is disallowed."
15
15
  },
16
16
  schema: []
17
17
  },
@@ -26,7 +26,7 @@ exports.rules = {
26
26
  if (indexType) {
27
27
  context.report({
28
28
  node,
29
- messageId: "disallowArrayForObjectType"
29
+ messageId: "noArrayAssignmentForObjectType"
30
30
  });
31
31
  }
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.customRule.js","sourceRoot":"","sources":["../eslint.customRule.ts"],"names":[],"mappings":";;;AAAA,oDAAiE;AAGpD,QAAA,KAAK,GAAG;IACjB,gCAAgC,EAAE;QAC9B,IAAI,EAAE;YACF,IAAI,EAAE,SAAS;YACf,IAAI,EAAE;gBACF,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,KAAK;aACrB;YACD,QAAQ,EAAE;gBACN,0BAA0B,EAAE,uCAAuC;aACtE;YACD,MAAM,EAAE,EAAE;SACb;QACD,MAAM,CAAC,OAAsD;YACzD,MAAM,cAAc,GAAG,mBAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAE9D,OAAO;gBACH,WAAW,CAAC,IAA0B;oBAClC,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;oBAC1E,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC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gBACL,CAAC;aACJ,CAAC;QACN,CAAC;KACJ;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimo/request",
3
- "version": "1.5.21",
3
+ "version": "1.5.23",
4
4
  "description": "Request api. Light, fast and secure.",
5
5
  "author": "cimo",
6
6
  "license": "MIT",
@@ -12,9 +12,9 @@
12
12
  "remove_dist": "node -e \"const fs = require('fs'); try{ fs.rmdirSync('./dist/', { recursive: true }) } catch{}; process.exit(0);\"",
13
13
  "remove_build": "node -e \"const fs = require('fs'); try{ fs.rmdirSync('./build/', { recursive: true }) } catch{}; process.exit(0);\"",
14
14
  "check": "eslint --no-cache --config eslint.config.js",
15
- "build_tsc": "npm run remove_dist && tsc --build tsconfig.tsc.json && npm run check",
15
+ "build_tsc": "npm run remove_dist && tsc --build tsconfig.tsc.json",
16
16
  "build_library": "npm run remove_build && tsc --build tsconfig.json && npm pack && mkdir -p ./build/ && mv *.tgz ./build/",
17
- "build": "npm audit && npm run build_tsc && npm run build_library"
17
+ "build": "npm audit && npm run build_tsc && npm run check && npm run build_library"
18
18
  },
19
19
  "dependencies": {},
20
20
  "devDependencies": {
@@ -23,8 +23,8 @@
23
23
  "@typescript-eslint/parser": "8.24.1",
24
24
  "@typescript-eslint/eslint-plugin": "8.24.1",
25
25
  "eslint-plugin-prettier": "5.2.1",
26
- "globals": "15.13.0",
27
26
  "prettier": "3.4.2",
27
+ "globals": "15.13.0",
28
28
  "@types/node": "22.10.2"
29
29
  },
30
30
  "resolutions": {},