@seethruhead/cra-payroll 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md.bak CHANGED
@@ -127,6 +127,18 @@ CLI args override config file values. Missing values are prompted interactively.
127
127
  | CPP2 max (additional) | $416.00 |
128
128
  | EI max premium | $1,123.07 |
129
129
 
130
+ ## Docker
131
+
132
+ No Chrome install needed — everything is bundled in the image.
133
+
134
+ ```bash
135
+ docker run --rm ghcr.io/seethruhead/cra-payroll --salary 100000
136
+ docker run --rm ghcr.io/seethruhead/cra-payroll --salary 150000 --table
137
+ docker run --rm ghcr.io/seethruhead/cra-payroll --salary 120000 --province "British Columbia" --annual --monthly
138
+ ```
139
+
140
+ > **Note:** The image is x86_64 only. On Apple Silicon Macs it runs via Rosetta emulation (slower but works).
141
+
130
142
  ## Run from source
131
143
 
132
144
  If you'd rather not download a binary, you can clone and run directly. You'll need [Google Chrome](https://www.google.com/chrome/) installed.
@@ -39589,7 +39589,7 @@ var require_estraverse = __commonJS((exports) => {
39589
39589
  this.parent = parent;
39590
39590
  this.key = key;
39591
39591
  }
39592
- Reference.prototype.replace = function replace2(node) {
39592
+ Reference.prototype.replace = function replace(node) {
39593
39593
  this.parent[this.key] = node;
39594
39594
  };
39595
39595
  Reference.prototype.remove = function remove() {
@@ -39610,13 +39610,13 @@ var require_estraverse = __commonJS((exports) => {
39610
39610
  function Controller() {}
39611
39611
  Controller.prototype.path = function path() {
39612
39612
  var i, iz, j, jz, result, element;
39613
- function addToPath(result2, path2) {
39614
- if (Array.isArray(path2)) {
39615
- for (j = 0, jz = path2.length;j < jz; ++j) {
39616
- result2.push(path2[j]);
39613
+ function addToPath(result2, path) {
39614
+ if (Array.isArray(path)) {
39615
+ for (j = 0, jz = path.length;j < jz; ++j) {
39616
+ result2.push(path[j]);
39617
39617
  }
39618
39618
  } else {
39619
- result2.push(path2);
39619
+ result2.push(path);
39620
39620
  }
39621
39621
  }
39622
39622
  if (!this.__current.path) {
@@ -39704,7 +39704,7 @@ var require_estraverse = __commonJS((exports) => {
39704
39704
  }
39705
39705
  return false;
39706
39706
  }
39707
- Controller.prototype.traverse = function traverse2(root, visitor) {
39707
+ Controller.prototype.traverse = function traverse(root, visitor) {
39708
39708
  var worklist, leavelist, element, node, nodeType, ret, key, current, current2, candidates, candidate, sentinel;
39709
39709
  this.__initialize(root, visitor);
39710
39710
  sentinel = {};
@@ -39777,7 +39777,7 @@ var require_estraverse = __commonJS((exports) => {
39777
39777
  }
39778
39778
  }
39779
39779
  };
39780
- Controller.prototype.replace = function replace2(root, visitor) {
39780
+ Controller.prototype.replace = function replace(root, visitor) {
39781
39781
  var worklist, leavelist, node, nodeType, target, element, current, current2, candidates, candidate, sentinel, outer, key;
39782
39782
  function removeElem(element2) {
39783
39783
  var i, key2, nextElem, parent;
@@ -51531,12 +51531,12 @@ var require_path = __commonJS((exports, module) => {
51531
51531
  var types = fork.use(types_1.default);
51532
51532
  var isArray4 = types.builtInTypes.array;
51533
51533
  var isNumber2 = types.builtInTypes.number;
51534
- var Path = function Path2(value, parentPath, name) {
51535
- if (!(this instanceof Path2)) {
51534
+ var Path = function Path(value, parentPath, name) {
51535
+ if (!(this instanceof Path)) {
51536
51536
  throw new Error("Path constructor cannot be invoked without 'new'");
51537
51537
  }
51538
51538
  if (parentPath) {
51539
- if (!(parentPath instanceof Path2)) {
51539
+ if (!(parentPath instanceof Path)) {
51540
51540
  throw new Error("");
51541
51541
  }
51542
51542
  } else {
@@ -51592,14 +51592,14 @@ var require_path = __commonJS((exports, module) => {
51592
51592
  }
51593
51593
  }
51594
51594
  };
51595
- Pp.map = function map2(callback, context2) {
51595
+ Pp.map = function map(callback, context2) {
51596
51596
  var result = [];
51597
51597
  this.each(function(childPath) {
51598
51598
  result.push(callback.call(this, childPath));
51599
51599
  }, context2);
51600
51600
  return result;
51601
51601
  };
51602
- Pp.filter = function filter2(callback, context2) {
51602
+ Pp.filter = function filter(callback, context2) {
51603
51603
  var result = [];
51604
51604
  this.each(function(childPath) {
51605
51605
  if (callback.call(this, childPath)) {
@@ -51832,14 +51832,14 @@ var require_scope = __commonJS((exports, module) => {
51832
51832
  var Expression = namedTypes.Expression;
51833
51833
  var isArray4 = types.builtInTypes.array;
51834
51834
  var b = types.builders;
51835
- var Scope = function Scope2(path, parentScope) {
51836
- if (!(this instanceof Scope2)) {
51835
+ var Scope = function Scope(path, parentScope) {
51836
+ if (!(this instanceof Scope)) {
51837
51837
  throw new Error("Scope constructor cannot be invoked without 'new'");
51838
51838
  }
51839
51839
  ScopeType.assert(path.value);
51840
51840
  var depth;
51841
51841
  if (parentScope) {
51842
- if (!(parentScope instanceof Scope2)) {
51842
+ if (!(parentScope instanceof Scope)) {
51843
51843
  throw new Error("");
51844
51844
  }
51845
51845
  depth = parentScope.depth + 1;
@@ -52077,8 +52077,8 @@ var require_node_path = __commonJS((exports, module) => {
52077
52077
  var isArray4 = types.builtInTypes.array;
52078
52078
  var Path = fork.use(path_1.default);
52079
52079
  var Scope = fork.use(scope_1.default);
52080
- var NodePath = function NodePath2(value, parentPath, name) {
52081
- if (!(this instanceof NodePath2)) {
52080
+ var NodePath = function NodePath(value, parentPath, name) {
52081
+ if (!(this instanceof NodePath)) {
52082
52082
  throw new Error("NodePath constructor cannot be invoked without 'new'");
52083
52083
  }
52084
52084
  Path.call(this, value, parentPath, name);
@@ -52428,8 +52428,8 @@ var require_path_visitor = __commonJS((exports, module) => {
52428
52428
  var isObject = types.builtInTypes.object;
52429
52429
  var isFunction2 = types.builtInTypes.function;
52430
52430
  var undefined2;
52431
- var PathVisitor = function PathVisitor2() {
52432
- if (!(this instanceof PathVisitor2)) {
52431
+ var PathVisitor = function PathVisitor() {
52432
+ if (!(this instanceof PathVisitor)) {
52433
52433
  throw new Error("PathVisitor constructor cannot be invoked without 'new'");
52434
52434
  }
52435
52435
  this._reusableContextStack = [];
@@ -52466,8 +52466,8 @@ var require_path_visitor = __commonJS((exports, module) => {
52466
52466
  if (!isObject.check(methods)) {
52467
52467
  return new PathVisitor;
52468
52468
  }
52469
- var Visitor = function Visitor2() {
52470
- if (!(this instanceof Visitor2)) {
52469
+ var Visitor = function Visitor() {
52470
+ if (!(this instanceof Visitor)) {
52471
52471
  throw new Error("Visitor constructor cannot be invoked without 'new'");
52472
52472
  }
52473
52473
  PathVisitor.call(this);
@@ -55975,7 +55975,7 @@ var require_ffi_WASM_RELEASE_SYNC = __commonJS((exports) => {
55975
55975
 
55976
55976
  // node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js
55977
55977
  var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS((exports, module) => {
55978
- var __dirname = "/repo/node_modules/@tootallnate/quickjs-emscripten/dist/generated", __filename = "/repo/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js";
55978
+ var __dirname = "/Users/shanekeulen/code/cra-payroll/node_modules/@tootallnate/quickjs-emscripten/dist/generated", __filename = "/Users/shanekeulen/code/cra-payroll/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js";
55979
55979
  var QuickJSRaw = (() => {
55980
55980
  var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : undefined;
55981
55981
  if (typeof __filename !== "undefined")
@@ -63233,7 +63233,7 @@ var require_tar_fs = __commonJS((exports) => {
63233
63233
  const statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd, ignore, opts.entries, opts.sort);
63234
63234
  const strict = opts.strict !== false;
63235
63235
  const umask = typeof opts.umask === "number" ? ~opts.umask : ~processUmask();
63236
- const pack2 = opts.pack || tar.pack();
63236
+ const pack = opts.pack || tar.pack();
63237
63237
  const finish = opts.finish || noop2;
63238
63238
  let map2 = opts.map || noop2;
63239
63239
  let dmode = typeof opts.dmode === "number" ? opts.dmode : 0;
@@ -63252,20 +63252,20 @@ var require_tar_fs = __commonJS((exports) => {
63252
63252
  function onsymlink(filename, header) {
63253
63253
  xfs.readlink(path7.join(cwd, filename), function(err2, linkname) {
63254
63254
  if (err2)
63255
- return pack2.destroy(err2);
63255
+ return pack.destroy(err2);
63256
63256
  header.linkname = normalize(linkname);
63257
- pack2.entry(header, onnextentry);
63257
+ pack.entry(header, onnextentry);
63258
63258
  });
63259
63259
  }
63260
63260
  function onstat(err2, filename, stat) {
63261
- if (pack2.destroyed)
63261
+ if (pack.destroyed)
63262
63262
  return;
63263
63263
  if (err2)
63264
- return pack2.destroy(err2);
63264
+ return pack.destroy(err2);
63265
63265
  if (!filename) {
63266
63266
  if (opts.finalize !== false)
63267
- pack2.finalize();
63268
- return finish(pack2);
63267
+ pack.finalize();
63268
+ return finish(pack);
63269
63269
  }
63270
63270
  if (stat.isSocket())
63271
63271
  return onnextentry();
@@ -63282,7 +63282,7 @@ var require_tar_fs = __commonJS((exports) => {
63282
63282
  header.size = 0;
63283
63283
  header.type = "directory";
63284
63284
  header = map2(header) || header;
63285
- return pack2.entry(header, onnextentry);
63285
+ return pack.entry(header, onnextentry);
63286
63286
  }
63287
63287
  if (stat.isSymbolicLink()) {
63288
63288
  header.size = 0;
@@ -63293,10 +63293,10 @@ var require_tar_fs = __commonJS((exports) => {
63293
63293
  header = map2(header) || header;
63294
63294
  if (!stat.isFile()) {
63295
63295
  if (strict)
63296
- return pack2.destroy(new Error("unsupported type for " + filename));
63296
+ return pack.destroy(new Error("unsupported type for " + filename));
63297
63297
  return onnextentry();
63298
63298
  }
63299
- const entry = pack2.entry(header, onnextentry);
63299
+ const entry = pack.entry(header, onnextentry);
63300
63300
  const rs = mapStream(xfs.createReadStream(path7.join(cwd, filename), { start: 0, end: header.size > 0 ? header.size - 1 : header.size }), header);
63301
63301
  rs.on("error", function(err3) {
63302
63302
  entry.destroy(err3);
@@ -63305,10 +63305,10 @@ var require_tar_fs = __commonJS((exports) => {
63305
63305
  }
63306
63306
  function onnextentry(err2) {
63307
63307
  if (err2)
63308
- return pack2.destroy(err2);
63308
+ return pack.destroy(err2);
63309
63309
  statNext(onstat);
63310
63310
  }
63311
- return pack2;
63311
+ return pack;
63312
63312
  };
63313
63313
  function head(list) {
63314
63314
  return list.length ? list[list.length - 1] : null;
@@ -63329,7 +63329,7 @@ var require_tar_fs = __commonJS((exports) => {
63329
63329
  const ignore = opts.ignore || opts.filter || noop2;
63330
63330
  const mapStream = opts.mapStream || echo;
63331
63331
  const own = opts.chown !== false && !win32 && processGetuid() === 0;
63332
- const extract2 = opts.extract || tar.extract();
63332
+ const extract = opts.extract || tar.extract();
63333
63333
  const stack = [];
63334
63334
  const now = new Date;
63335
63335
  const umask = typeof opts.umask === "number" ? ~opts.umask : ~processUmask();
@@ -63348,10 +63348,10 @@ var require_tar_fs = __commonJS((exports) => {
63348
63348
  dmode |= parseInt(333, 8);
63349
63349
  fmode |= parseInt(222, 8);
63350
63350
  }
63351
- extract2.on("entry", onentry);
63351
+ extract.on("entry", onentry);
63352
63352
  if (opts.finish)
63353
- extract2.on("finish", opts.finish);
63354
- return extract2;
63353
+ extract.on("finish", opts.finish);
63354
+ return extract;
63355
63355
  function onentry(header, stream, next) {
63356
63356
  header = map2(header) || header;
63357
63357
  header.name = normalize(header.name);
@@ -66245,14 +66245,14 @@ function usage(yargs, shim2) {
66245
66245
  const logger = yargs.getInternalMethods().getLoggerInstance();
66246
66246
  if (fails.length) {
66247
66247
  for (let i = fails.length - 1;i >= 0; --i) {
66248
- const fail2 = fails[i];
66249
- if (isBoolean(fail2)) {
66248
+ const fail = fails[i];
66249
+ if (isBoolean(fail)) {
66250
66250
  if (err2)
66251
66251
  throw err2;
66252
66252
  else if (msg)
66253
66253
  throw Error(msg);
66254
66254
  } else {
66255
- fail2(msg, err2, self2);
66255
+ fail(msg, err2, self2);
66256
66256
  }
66257
66257
  }
66258
66258
  } else {
@@ -66309,7 +66309,7 @@ function usage(yargs, shim2) {
66309
66309
  examples.push([cmd, description || ""]);
66310
66310
  };
66311
66311
  let commands = [];
66312
- self2.command = function command2(cmd, description, isDefault, aliases, deprecated = false) {
66312
+ self2.command = function command(cmd, description, isDefault, aliases, deprecated = false) {
66313
66313
  if (isDefault) {
66314
66314
  commands = commands.map((cmdArray) => {
66315
66315
  cmdArray[2] = false;
@@ -79638,7 +79638,7 @@ import { existsSync as existsSync4, renameSync, unlinkSync, chmodSync } from "fs
79638
79638
  // package.json
79639
79639
  var package_default = {
79640
79640
  name: "@seethruhead/cra-payroll",
79641
- version: "0.8.3",
79641
+ version: "0.8.4",
79642
79642
  description: "Calculate Canadian payroll deductions using CRA's Payroll Deductions Online Calculator",
79643
79643
  type: "module",
79644
79644
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seethruhead/cra-payroll",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Calculate Canadian payroll deductions using CRA's Payroll Deductions Online Calculator",
5
5
  "type": "module",
6
6
  "bin": {