Skip to content

Commit

Permalink
Use hardcoded agent instead of generating from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jul 21, 2024
1 parent 19b99b8 commit c3bd833
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/export-node.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import environment from './environment.js';
import {name, version} from '../package.json';

environment.canAccessScratchAPI = true;
environment.headers['user-agent'] = `SBDL/${version} (+https://www.npmjs.com/package/${name})`;

// The version here should be incremented if our traffic pattern ever changes significantly
environment.headers['user-agent'] = 'SBDL/1.0 (+https://www.npmjs.com/package/@turbowarp/sbdl)';

export * from './downloader.js';

0 comments on commit c3bd833

Please sign in to comment.