Skip to content

Commit ba253bd

Browse files
committed
updated uuid & README
1 parent 6aeac16 commit ba253bd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
ImageKit Node.js SDK allows you to use [image resizing](https://docs.imagekit.io/features/image-transformations), [optimization](https://docs.imagekit.io/features/image-optimization), [file uploading](https://docs.imagekit.io/api-reference/upload-file-api) and other [ImageKit APIs](https://docs.imagekit.io/api-reference/api-introduction) from applications written in server-side JavaScript.
1414

15+
This SDK supports both CommonJS and ESM.
1516
##### Table of contents
1617
* [Installation](#installation)
1718
* [Initialization](#initialization)
@@ -37,6 +38,10 @@ yarn add imagekit
3738
## Initialization
3839

3940
```js
41+
import ImageKit from "imagekit";
42+
43+
// or
44+
4045
var ImageKit = require("imagekit");
4146

4247
var imagekit = new ImageKit({

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagekit",
3-
"version": "3.2.5",
3+
"version": "4.0.0",
44
"description": "Offical NodeJS SDK for ImageKit.io integration",
55
"main": "./dist/cjs/index.js",
66
"types": "./dist/types/index.d.ts",
@@ -22,7 +22,7 @@
2222
"form-data": "^4.0.0",
2323
"hamming-distance": "^1.0.0",
2424
"lodash": "^4.17.15",
25-
"uuid": "^3.3.3"
25+
"uuid": "^8.3.2"
2626
},
2727
"engines": {
2828
"node": ">=10.0.0"
@@ -37,7 +37,7 @@
3737
"@types/lodash": "^4.14.170",
3838
"@types/node": "^15.12.2",
3939
"@types/request": "^2.48.5",
40-
"@types/uuid": "^8.3.0",
40+
"@types/uuid": "^8.3.4",
4141
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
4242
"chai": "^4.2.0",
4343
"codecov": "^3.8.0",

yarn.lock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@
10891089
resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.2.tgz#6286b4c7228d58ab7866d19716f3696e03a09397"
10901090
integrity sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==
10911091

1092-
"@types/uuid@^8.3.0":
1092+
"@types/uuid@^8.3.4":
10931093
version "8.3.4"
10941094
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
10951095
integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==
@@ -3153,11 +3153,6 @@ [email protected]:
31533153
dependencies:
31543154
fast-url-parser "^1.1.3"
31553155

3156-
uuid@^3.3.3:
3157-
version "3.4.0"
3158-
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
3159-
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
3160-
31613156
uuid@^8.0.0, uuid@^8.3.2:
31623157
version "8.3.2"
31633158
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"

0 commit comments

Comments
 (0)