Comparing version 1.0.2 to 1.1.0
@@ -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 @@ /** |
13
test.js
@@ -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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7350
9
252
No