GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: remove array-uniq (#73) · googleapis/google-cloud-node@771f24f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • core/common
    • package.json
    • src
      • util.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎core/common/package.json‎

Copy file name to clipboardExpand all lines: core/common/package.json
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"fix": "gts fix"
5252
},
5353
"dependencies": {
54-
"array-uniq": "^1.0.3",
5554
"arrify": "^1.0.1",
5655
"concat-stream": "^1.6.0",
5756
"create-error-class": "^3.0.2",
Collapse file

‎core/common/src/util.ts‎

Copy file name to clipboardExpand all lines: core/common/src/util.ts
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const request = require('request').defaults({
3636
import * as retryRequest from 'retry-request';
3737
import * as streamEvents from 'stream-events';
3838
import * as through from 'through2';
39-
import * as uniq from 'array-uniq';
4039

4140
const util = module.exports;
4241

@@ -100,7 +99,7 @@ util.ApiError = createErrorClass('ApiError', function(errorBody) {
10099
messages.push('Error during request.');
101100
}
102101

103-
this.message = uniq(messages).join(' - ');
102+
this.message = Array.from(new Set(messages)).join(' - ');
104103
});
105104

106105
/**

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.