Skip to content

Commit fa192c8

Browse files
author
Ives van Hoorne
committed
Introduce versions in new packager
1 parent 196ce91 commit fa192c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sandbox/npm/fetch-dependencies.new.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ type Dependencies = {
1212
const RETRY_COUNT = 60;
1313
const debug = _debug('cs:sandbox:packager');
1414

15+
const VERSION = 1;
16+
1517
const BUCKET_URL =
1618
process.env.NODE_ENV === 'production'
1719
? 'https://d1jyvh0kxilfa7.cloudfront.net'
@@ -80,7 +82,7 @@ async function requestPackager(url, method = 'GET') {
8082
}
8183

8284
function dependenciesToBucketPath(dependencies: Object) {
83-
return `combinations/${Object.keys(dependencies)
85+
return `v${VERSION}/combinations/${Object.keys(dependencies)
8486
.sort()
8587
.map(
8688
// Paths starting with slashes don't work with cloudfront, even escaped. So we remove the slashes

0 commit comments

Comments
 (0)