Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aforwait

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aforwait - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

3

lib/test.d.ts

@@ -1,1 +0,2 @@

export {};
declare const aforwait: any;
declare const aforSec: any, aforMin: any, aforInfinit: any, aforDays: any, aforHours: any, aforYears: any, aforDecades: any;

@@ -1,20 +0,7 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const index_js_1 = __importDefault(require("./index.js"));
(() => __awaiter(void 0, void 0, void 0, function* () {
const aforwait = require("./index.js");
const { aforSec, aforMin, aforInfinit, aforDays, aforHours, aforYears, aforDecades } = aforwait;
(async () => {
console.log("i'm gonna wait 5 seconds and then tell you yee");
yield index_js_1.default(5000); // await aforSec(5);
await aforwait(5000); // await aforSec(5);
console.log("yee");
}))();
})();
{
"name": "aforwait",
"version": "1.0.2",
"description": "",
"type": "module",
"version": "1.1.0",
"description": "awaiting but for specific amout of time",
"type": "commonjs",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"scripts": {
"test": "tsc & node ./lib/test.js",
"test": "tsc & node ./test.js",
"build": "tsc",

@@ -11,0 +11,0 @@ "pub": "tsc & npm publish"

const ms = 1

@@ -3,0 +4,0 @@ /**

@@ -1,8 +0,17 @@

import * as aforwait from "./lib/index.js";
const aforwait = require("./lib/index.js");
const {
aforSec,
aforMin,
aforInfinit,
aforDays,
aforHours,
aforYears,
aforDecades
} = aforwait;
(async () => {
console.log("i'm gonna wait 5 seconds and then tell you yee")
await aforwait.aforSec(5) // await aforSec(5);
await aforSec(5) // await aforSec(5);
console.log("yee")
})()

@@ -5,4 +5,4 @@ {

"moduleResolution": "node",
"module": "CommonJS",
"target": "ES6",
"module": "None",
"target": "ESNext",
"outDir": "lib",

@@ -9,0 +9,0 @@ "declaration": true,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc