limiter-audio-worklet-processor 1.1.60 → 1.1.61

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.
Files changed (2) hide show
  1. package/build/es5/bundle.js +7 -8
  2. package/package.json +11 -11
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/wrapNativeSuper')) :
3
- typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/wrapNativeSuper'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global._slicedToArray, global._typeof, global._classCallCheck, global._createClass, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._wrapNativeSuper));
5
- })(this, (function (_slicedToArray, _typeof, _classCallCheck, _createClass, _inherits, _possibleConstructorReturn, _getPrototypeOf, _wrapNativeSuper) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/typeof'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/wrapNativeSuper')) :
3
+ typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/typeof', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/wrapNativeSuper'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global._slicedToArray, global._typeof, global._classCallCheck, global._createClass, global._possibleConstructorReturn, global._getPrototypeOf, global._inherits, global._wrapNativeSuper));
5
+ })(this, (function (_slicedToArray, _typeof, _classCallCheck, _createClass, _possibleConstructorReturn, _getPrototypeOf, _inherits, _wrapNativeSuper) { 'use strict';
6
6
 
7
7
  var ConstantMemoryDeque = /*#__PURE__*/function () {
8
8
  function ConstantMemoryDeque(_buffer) {
@@ -114,8 +114,8 @@
114
114
  return nextOffset;
115
115
  };
116
116
 
117
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
118
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
117
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
118
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
119
119
  var RELEASE_TIME_SECONDS = 0.5;
120
120
  var RELEASE_GAIN = Math.exp(-1 / (sampleRate * RELEASE_TIME_SECONDS));
121
121
  var THRESHOLD = Math.pow(10, -0.1);
@@ -155,7 +155,6 @@
155
155
  };
156
156
  var LimiterAudioWorkletProcessor = /*#__PURE__*/function (_AudioWorkletProcesso) {
157
157
  _inherits(LimiterAudioWorkletProcessor, _AudioWorkletProcesso);
158
- var _super = _createSuper(LimiterAudioWorkletProcessor);
159
158
  function LimiterAudioWorkletProcessor(_ref) {
160
159
  var _this;
161
160
  var channelCount = _ref.channelCount,
@@ -184,7 +183,7 @@
184
183
  if (outputChannelCount === undefined || channelCount !== outputChannelCount[0]) {
185
184
  throw new Error('The channelCount must be the same as the outputChannelCount of the first output.');
186
185
  }
187
- _this = _super.call(this);
186
+ _this = _callSuper(this, LimiterAudioWorkletProcessor);
188
187
  var attackSamples = sampleRate * attack;
189
188
  var delaySize = Math.round(attackSamples);
190
189
  var delayBufferSize = delaySize + 128;
package/package.json CHANGED
@@ -9,23 +9,23 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "@babel/runtime": "^7.23.5",
12
+ "@babel/runtime": "^7.23.8",
13
13
  "tslib": "^2.6.2"
14
14
  },
15
15
  "description": "The AudioWorkletProcessor which is used by the limiter-audio-worklet package.",
16
16
  "devDependencies": {
17
- "@babel/core": "^7.23.5",
17
+ "@babel/core": "^7.23.7",
18
18
  "@babel/plugin-external-helpers": "^7.23.3",
19
- "@babel/plugin-transform-runtime": "^7.23.4",
20
- "@babel/preset-env": "^7.23.5",
19
+ "@babel/plugin-transform-runtime": "^7.23.7",
20
+ "@babel/preset-env": "^7.23.8",
21
21
  "@commitlint/cli": "^17.7.2",
22
22
  "@commitlint/config-angular": "^17.7.0",
23
23
  "@rollup/plugin-babel": "^6.0.4",
24
24
  "chai": "^4.3.10",
25
25
  "commitizen": "^4.3.0",
26
26
  "cz-conventional-changelog": "^3.3.0",
27
- "eslint": "^8.55.0",
28
- "eslint-config-holy-grail": "^57.2.25",
27
+ "eslint": "^8.56.0",
28
+ "eslint-config-holy-grail": "^57.2.27",
29
29
  "grunt": "^1.6.1",
30
30
  "grunt-cli": "^1.4.3",
31
31
  "grunt-sh": "^0.2.1",
@@ -44,17 +44,17 @@
44
44
  "load-grunt-config": "^4.0.1",
45
45
  "memory-fs": "^0.5.0",
46
46
  "mocha": "^10.2.0",
47
- "prettier": "^3.1.0",
47
+ "prettier": "^3.2.4",
48
48
  "rimraf": "^5.0.5",
49
- "rollup": "^4.6.1",
49
+ "rollup": "^4.9.5",
50
50
  "sinon": "^17.0.1",
51
51
  "sinon-chai": "^3.7.0",
52
- "standardized-audio-context": "^25.3.60",
52
+ "standardized-audio-context": "^25.3.63",
53
53
  "ts-loader": "^9.5.1",
54
54
  "tsconfig-holy-grail": "^14.0.8",
55
55
  "tslint": "^6.1.3",
56
56
  "tslint-config-holy-grail": "^55.0.5",
57
- "typescript": "^5.3.2",
57
+ "typescript": "^5.3.3",
58
58
  "webpack": "^5.89.0"
59
59
  },
60
60
  "files": [
@@ -82,5 +82,5 @@
82
82
  "test": "grunt lint && grunt test"
83
83
  },
84
84
  "types": "build/es2019/module.d.ts",
85
- "version": "1.1.60"
85
+ "version": "1.1.61"
86
86
  }