webdev-essentials
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -9,2 +9,3 @@ # NPM Modules | ||
# bump lib-version in package.json | ||
npm version patch #patch|minor|major | ||
# commit & push code | ||
@@ -11,0 +12,0 @@ npm run build |
export * from './fetchWithTimeout'; | ||
export * from './randomFromTo'; | ||
export * from './userLanguage'; | ||
export * from './classNames'; | ||
export * from './validators'; |
@@ -15,2 +15,3 @@ "use strict"; | ||
__exportStar(require("./randomFromTo"), exports); | ||
__exportStar(require("./userLanguage"), exports); | ||
__exportStar(require("./classNames"), exports); | ||
__exportStar(require("./validators"), exports); |
{ | ||
"name": "webdev-essentials", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "A collection of useful hooks and utils for web development.", | ||
@@ -16,4 +16,4 @@ "scripts": { | ||
"devDependencies": { | ||
"@types/react": "^17.0.24", | ||
"typescript": "^4.4.3" | ||
"@types/react": "^18.2.16", | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"react": "^17.0.2" | ||
"react": "^18.2.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "publishConfig": { |
@@ -11,5 +11,6 @@ # Description | ||
└── utils | ||
├── classNames.ts | ||
├── fetchWithTimeout.ts | ||
├── randomFromTo.ts | ||
└── userLanguage.ts | ||
└── validators.ts | ||
``` |
@@ -103,11 +103,3 @@ { | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"styled-components", | ||
"nextjs", | ||
"animations", | ||
"utils/userLanguage.ts", | ||
"hooks/useAPIFetch.tsx" | ||
] | ||
"exclude": ["node_modules", "dist"] | ||
} |
@@ -0,0 +0,0 @@ interface FetchOptions { |
export * from './fetchWithTimeout'; | ||
export * from './randomFromTo'; | ||
export * from './userLanguage'; | ||
export * from './classNames'; | ||
export * from './validators'; |
export default function randomFromTo(min: number, max: number): number { | ||
return Math.floor(Math.random() * (max - min + 1) + min); | ||
} |
@@ -0,0 +0,0 @@ # Utils |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49176
39
857
16
2
+ Addedreact@18.3.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
Updatedreact@^18.2.0