@google-cloud/promisify 4.0.0 → 5.0.0
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/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/build/src/index.js +4 -5
- package/package.json +17 -15
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-promisify?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [5.0.0](https://github.com/googleapis/nodejs-promisify/compare/v4.1.0...v5.0.0) (2025-03-11)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* upgrade to Node 18 ([#363](https://github.com/googleapis/nodejs-promisify/issues/363))
|
|
13
|
+
|
|
14
|
+
### Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* Upgrade to Node 18 ([#363](https://github.com/googleapis/nodejs-promisify/issues/363)) ([f8454e2](https://github.com/googleapis/nodejs-promisify/commit/f8454e21c87fd94f482e51675d604bf6f33cbeab))
|
|
17
|
+
|
|
18
|
+
## [4.1.0](https://github.com/googleapis/nodejs-promisify/compare/v4.0.0...v4.1.0) (2025-03-05)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* Introduce Node 18 ([#360](https://github.com/googleapis/nodejs-promisify/issues/360)) ([a41ceac](https://github.com/googleapis/nodejs-promisify/commit/a41ceac378a8bda5d9cd054c9280153a8a1e3055))
|
|
24
|
+
|
|
7
25
|
## [4.0.0](https://github.com/googleapis/nodejs-promisify/compare/v3.0.1...v4.0.0) (2023-08-08)
|
|
8
26
|
|
|
9
27
|
|
package/README.md
CHANGED
|
@@ -153,4 +153,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-promisify/blob/main/LICENSE)
|
|
|
153
153
|
[projects]: https://console.cloud.google.com/project
|
|
154
154
|
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
|
|
155
155
|
|
|
156
|
-
[auth]: https://cloud.google.com/docs/authentication/
|
|
156
|
+
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
|
package/build/src/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable prefer-rest-params */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.promisify = promisify;
|
|
5
|
+
exports.promisifyAll = promisifyAll;
|
|
6
|
+
exports.callbackify = callbackify;
|
|
7
|
+
exports.callbackifyAll = callbackifyAll;
|
|
5
8
|
/**
|
|
6
9
|
* Wraps a callback style function to conditionally return a promise.
|
|
7
10
|
*
|
|
@@ -60,7 +63,6 @@ function promisify(originalMethod, options) {
|
|
|
60
63
|
wrapper.promisified_ = true;
|
|
61
64
|
return wrapper;
|
|
62
65
|
}
|
|
63
|
-
exports.promisify = promisify;
|
|
64
66
|
/**
|
|
65
67
|
* Promisifies certain Class methods. This will not promisify private or
|
|
66
68
|
* streaming methods.
|
|
@@ -87,7 +89,6 @@ function promisifyAll(Class, options) {
|
|
|
87
89
|
}
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
|
-
exports.promisifyAll = promisifyAll;
|
|
91
92
|
/**
|
|
92
93
|
* Wraps a promisy type function to conditionally call a callback function.
|
|
93
94
|
*
|
|
@@ -116,7 +117,6 @@ function callbackify(originalMethod) {
|
|
|
116
117
|
wrapper.callbackified_ = true;
|
|
117
118
|
return wrapper;
|
|
118
119
|
}
|
|
119
|
-
exports.callbackify = callbackify;
|
|
120
120
|
/**
|
|
121
121
|
* Callbackifies certain Class methods. This will not callbackify private or
|
|
122
122
|
* streaming methods.
|
|
@@ -144,5 +144,4 @@ Class, options) {
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
exports.callbackifyAll = callbackifyAll;
|
|
148
147
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/promisify",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "A simple utility for promisifying functions and classes.",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"types": "build/src/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"fix": "gts fix",
|
|
13
13
|
"prepare": "npm run compile",
|
|
14
14
|
"pretest": "npm run compile",
|
|
15
|
-
"docs": "
|
|
15
|
+
"docs": "jsdoc -c .jsdoc.js",
|
|
16
16
|
"presystem-test": "npm run compile",
|
|
17
17
|
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
|
|
18
18
|
"system-test": "mocha build/system-test",
|
|
@@ -30,21 +30,23 @@
|
|
|
30
30
|
"author": "Google Inc.",
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@types/
|
|
35
|
-
"@types/
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"gts": "^5.0.0",
|
|
33
|
+
"@types/mocha": "^10.0.10",
|
|
34
|
+
"@types/node": "^22.13.9",
|
|
35
|
+
"@types/sinon": "^17.0.4",
|
|
36
|
+
"c8": "^10.1.3",
|
|
37
|
+
"chai": "^5.2.0",
|
|
38
|
+
"codecov": "^3.8.3",
|
|
39
|
+
"gts": "^6.0.2",
|
|
41
40
|
"hard-rejection": "^2.1.0",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
41
|
+
"jsdoc": "^4.0.4",
|
|
42
|
+
"jsdoc-fresh": "^3.0.0",
|
|
43
|
+
"jsdoc-region-tag": "^3.0.0",
|
|
44
|
+
"linkinator": "^6.1.2",
|
|
45
|
+
"mocha": "^11.1.0",
|
|
46
|
+
"sinon": "^19.0.2",
|
|
47
|
+
"typescript": "^5.8.2"
|
|
46
48
|
},
|
|
47
49
|
"engines": {
|
|
48
|
-
"node": ">=
|
|
50
|
+
"node": ">=18"
|
|
49
51
|
}
|
|
50
52
|
}
|