para-client-js 1.41.4 → 1.41.6

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.
@@ -13,7 +13,6 @@
13
13
  * @returns {Pager} a pager
14
14
  */
15
15
  export default class Pager {
16
- constructor(page: any, sortby: any, desc: any, limit: any);
17
16
  page: any;
18
17
  count: number;
19
18
  sortby: any;
@@ -22,4 +21,5 @@ export default class Pager {
22
21
  name: string;
23
22
  lastKey: any;
24
23
  select: any;
24
+ constructor(page: any, sortby: any, desc: any, limit: any);
25
25
  }
@@ -1,5 +1,4 @@
1
1
  export default class ParaObject {
2
- constructor(id: any, type: any);
3
2
  id: any;
4
3
  type: any;
5
4
  name: string;
@@ -7,6 +6,14 @@ export default class ParaObject {
7
6
  indexed: boolean;
8
7
  cached: boolean;
9
8
  version: number;
9
+ appid: string;
10
+ parentid: string;
11
+ creatorid: string;
12
+ timestamp: number;
13
+ updated: number;
14
+ tags: any[];
15
+ votes: number;
16
+ constructor(id: any, type: any);
10
17
  /**
11
18
  * The id of an object. Usually an autogenerated unique string of numbers.
12
19
  *
@@ -44,7 +51,6 @@ export default class ParaObject {
44
51
  * @param {String} appid the new app id (name)
45
52
  */
46
53
  setAppid(appid: string): void;
47
- appid: string;
48
54
  /**
49
55
  * The id of the parent object.
50
56
  *
@@ -57,7 +63,6 @@ export default class ParaObject {
57
63
  * @param {String} parentid a new id
58
64
  */
59
65
  setParentid(parentid: string): void;
60
- parentid: string;
61
66
  /**
62
67
  * The name of the object's class. This is equivalent to {@link Class#getSimpleName()}.toLowerCase().
63
68
  *
@@ -82,7 +87,6 @@ export default class ParaObject {
82
87
  * @param {String} creatorid a new id
83
88
  */
84
89
  setCreatorid(creatorid: string): void;
85
- creatorid: string;
86
90
  /**
87
91
  * The URI of this object. For example: /user/123.
88
92
  *
@@ -101,7 +105,6 @@ export default class ParaObject {
101
105
  * @param {Number} timestamp a new timestamp in milliseconds.
102
106
  */
103
107
  setTimestamp(timestamp: number): void;
104
- timestamp: number;
105
108
  /**
106
109
  * The last time this object was updated. Timestamp in ms.
107
110
  *
@@ -114,7 +117,6 @@ export default class ParaObject {
114
117
  * @param {Number} updated a new timestamp
115
118
  */
116
119
  setUpdated(updated: number): void;
117
- updated: number;
118
120
  /**
119
121
  * The tags associated with this object. Tags must not be null or empty.
120
122
  *
@@ -127,7 +129,6 @@ export default class ParaObject {
127
129
  * @param {Array} tags the additional tags, or clears all tags if set to null
128
130
  */
129
131
  setTags(tags: any[]): void;
130
- tags: any[];
131
132
  /**
132
133
  * The votes associated with this object.
133
134
  *
@@ -140,7 +141,6 @@ export default class ParaObject {
140
141
  * @param {Number} votes
141
142
  */
142
143
  setVotes(votes: number): void;
143
- votes: number;
144
144
  /**
145
145
  * The version of this object.
146
146
  *
@@ -1,3 +1,6 @@
1
+ import ParaObject from './ParaObject.js';
2
+ import Pager from './Pager.js';
3
+ import Constraint from './Constraint.js';
1
4
  /**
2
5
  * JavaScript client for communicating with a Para API server.
3
6
  * @param {String} accessKey Para access key
@@ -8,7 +11,6 @@
8
11
  * @author Alex Bogdanovski <alex@erudika.com>
9
12
  */
10
13
  export default class ParaClient {
11
- constructor(accessKey: any, secretKey: any, options: any);
12
14
  accessKey: any;
13
15
  endpoint: any;
14
16
  apiPath: any;
@@ -115,6 +117,7 @@ export default class ParaClient {
115
117
  * @returns {Object} parameters map
116
118
  */
117
119
  pagerToParams: (pager: Pager) => any;
120
+ constructor(accessKey: any, secretKey: any, options: any);
118
121
  /**
119
122
  * Returns the App for the current access key (appid).
120
123
  * @param {Function} fn callback (optional)
@@ -663,7 +666,4 @@ export default class ParaClient {
663
666
  */
664
667
  revokeAllTokens(fn: Function): Promise<any>;
665
668
  }
666
- import Pager from './Pager.js';
667
- import ParaObject from './ParaObject.js';
668
- import Constraint from './Constraint.js';
669
- export { ParaObject, Pager, Constraint };
669
+ export { ParaClient, ParaObject, Pager, Constraint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "para-client-js",
3
- "version": "1.41.4",
3
+ "version": "1.41.6",
4
4
  "description": "JavaScript Client for Para",
5
5
  "homepage": "https://paraio.org",
6
6
  "repository": {
@@ -50,18 +50,18 @@
50
50
  "devDependencies": {
51
51
  "@eslint/js": "^10.0.1",
52
52
  "dotenv": "^17.4.2",
53
- "eslint": "^10.4.1",
53
+ "eslint": "^10.8.0",
54
54
  "eslint-config-prettier": "^10.1.8",
55
- "eslint-plugin-n": "^18.1.0",
55
+ "eslint-plugin-n": "^18.2.2",
56
56
  "eslint-plugin-prettier": "^5.5.6",
57
- "globals": "^17.6.0",
57
+ "globals": "^17.9.0",
58
58
  "lodash": "^4.18.1",
59
59
  "mocha": "^12.0.0-beta-3",
60
- "prettier": "^3.8.4",
61
- "release-it": "^20.2.0",
62
- "testcontainers": "^12.0.1",
63
- "tsdown": "^0.22.2",
64
- "typescript": "^6.0.3"
60
+ "prettier": "^3.9.6",
61
+ "release-it": "^21.0.1",
62
+ "testcontainers": "^12.0.4",
63
+ "tsdown": "^0.22.14",
64
+ "typescript": "^7.0.2"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsdown --clean",
@@ -79,7 +79,7 @@
79
79
  "license": "Apache-2.0",
80
80
  "dependencies": {
81
81
  "aws4": "^1.13.2",
82
- "lru-cache": "^11.5.1",
82
+ "lru-cache": "^11.5.2",
83
83
  "superagent": "^10.3.0"
84
84
  },
85
85
  "release-it": {