Browse Source

update dependencies

jomo 1 năm trước cách đây
mục cha
commit
c155c8d098
4 tập tin đã thay đổi với 472 bổ sung221 xóa
  1. 1 1
      Dockerfile
  2. 1 1
      README.md
  3. 468 217
      package-lock.json
  4. 2 2
      test/test.js

+ 1 - 1
Dockerfile

@@ -1,6 +1,6 @@
 FROM node:12-alpine AS builder
 
-RUN apk --no-cache add git python build-base redis cairo-dev pango-dev jpeg-dev giflib-dev
+RUN apk --no-cache add git python3 build-base redis cairo-dev pango-dev jpeg-dev giflib-dev
 
 RUN adduser -D app
 USER app

+ 1 - 1
README.md

@@ -39,7 +39,7 @@ Please [visit the website](https://crafatar.com) for details.
 ```sh
 docker network create crafatar
 docker run --net crafatar -d --name redis redis
-docker run --net crafatar -v crafatar-images:/crafatar/images -e REDIS_URL=redis://redis -p 3000:3000 crafatar/crafatar
+docker run --net crafatar -v crafatar-images:/home/app/crafatar/images -e REDIS_URL=redis://redis -p 3000:3000 crafatar/crafatar
 ```
 
 ## Manual

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 468 - 217
package-lock.json


+ 2 - 2
test/test.js

@@ -346,7 +346,7 @@ describe("Crafatar", function() {
       },
       "cape with existing uuid": {
         url: "http://localhost:3000/capes/853c80ef3c3749fdaa49938b674adae6",
-        crc32: [985789174],
+        crc32: [985789174, 2099310578],
       },
       "cape with non-existent uuid": {
         url: "http://localhost:3000/capes/00000000000000000000000000000000",
@@ -710,7 +710,7 @@ describe("Crafatar", function() {
 
 
   describe("Errors", function() {
-      before(function() {
+    before(function() {
       cache.get_redis().flushall();
     });
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác