@nina-protocol/nina-db 0.0.8 → 0.0.9
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/dist/utils/index.js +1 -0
- package/package.json +1 -1
- package/src/utils/index.js +2 -0
package/dist/utils/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export const stripHtmlIfNeeded = (object, value) => {
|
|
|
14
14
|
export const decode = (byteArray) => {
|
|
15
15
|
return new TextDecoder().decode(new Uint8Array(byteArray)).replaceAll(/\u0000/g, '');
|
|
16
16
|
};
|
|
17
|
+
const sleep = (time) => new Promise(resolve => setTimeout(resolve, time));
|
|
17
18
|
export const tweetNewRelease = async (metadata) => {
|
|
18
19
|
if (process.env.TWITTER_API_SECRET) {
|
|
19
20
|
try {
|
package/package.json
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -18,6 +18,8 @@ export const decode = (byteArray) => {
|
|
|
18
18
|
return new TextDecoder().decode(new Uint8Array(byteArray)).replaceAll(/\u0000/g, '');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
const sleep = (time) => new Promise(resolve => setTimeout(resolve, time))
|
|
22
|
+
|
|
21
23
|
export const tweetNewRelease = async (metadata) => {
|
|
22
24
|
if (process.env.TWITTER_API_SECRET) {
|
|
23
25
|
try {
|