Skip to content

Commit 75bcb74

Browse files
committed
use strict all the things
1 parent d736ae8 commit 75bcb74

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

lib/extract-stream.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
// TODO:
23
// - file/dir ownership setting based on what's in the file.
34

lib/extract-sync.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
// This should only be called by passing all the data through in
23
// a single tick. If it's written to synchronously, then it'll
34
// still go as blockingly fast as it can, but there's less benefit.

lib/extract.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
// give it a tarball and a path, and it'll dump the contents
23
const ExtractStream = require('./extract-stream.js')
34
const ExtractSync = require('./extract-sync.js')

lib/field.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
module.exports = class Field {
23
constructor (offset, size, numeric) {
34
this.size = size

lib/header.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
// parse a 512-byte header block to a data object, or vice-versa
23
// encode returns `true` if an extended header is needed, because
34
// the data could not be faithfully encoded in a simple header.

lib/pax.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
const Header = require('./header.js')
23
const path = require('path')
34
const assert = require('assert')

lib/read-entry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
const types = require('./types.js')
23
const MiniPass = require('minipass')
34

lib/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
// map types from key to human-friendly name
23
exports.name = new Map([
34
['0', 'File'],

lib/write-entry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
const MiniPass = require('minipass')
23
const Pax = require('./pax.js')
34
const Header = require('./header.js')

0 commit comments

Comments
 (0)