Skip to content

Commit

Permalink
fix: Removing randomstring dependency to improve support for Angular 8
Browse files Browse the repository at this point in the history
closes:  #407
  • Loading branch information
128keaton authored and jdalrymple committed Aug 9, 2019
1 parent 6949dfd commit a196d4c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"ky-universal": "^0.2.1",
"li": "^1.3.0",
"query-string": "^6.8.1",
"randomstring": "^1.1.5",
"universal-url": "^2.0.0"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/services/ProjectImportExport.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import FormData from 'form-data';
import randomstring from 'randomstring';
import { BaseService, RequestHelper, Sudo, BaseRequestOptions } from '../infrastructure';
import { ProjectId, UploadMetadata } from '.';

Expand All @@ -20,7 +19,7 @@ class ProjectImportExport extends BaseService {
const form = new FormData();

const defaultMetadata: UploadMetadata = {
filename: randomstring.generate(8),
filename: Date.now().toString(),
contentType: 'application/octet-stream',
};

Expand Down
3 changes: 1 addition & 2 deletions src/services/Projects.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import FormData from 'form-data';
import randomstring from 'randomstring';
import {
BaseRequestOptions,
BaseService,
Expand Down Expand Up @@ -136,7 +135,7 @@ class Projects extends BaseService {
const form = new FormData();

const defaultMetadata: UploadMetadata = {
filename: randomstring.generate(8),
filename: Date.now().toString(),
contentType: 'application/octet-stream',
};

Expand Down

0 comments on commit a196d4c

Please sign in to comment.