@contrast/rewriter 1.3.0 → 1.3.1

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/lib/index.js +0 -11
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -143,17 +143,6 @@ class Rewriter {
143
143
  '==': 'doubleEqual',
144
144
  '!=': 'notDoubleEqual'
145
145
  });
146
- self.injections.push(
147
- statement(
148
- 'const %%name%% = global.%%id%% || %%name%%;'
149
- )({ name: 'JSON', id: 'ContrastJSON' }),
150
- statement(
151
- 'const %%name%% = global.%%id%% || %%name%%;'
152
- )({ name: 'Object', id: 'ContrastObject' }),
153
- statement(
154
- 'const %%name%% = global.%%id%% || %%name%%;'
155
- )({ name: 'Number', id: 'ContrastNumber' })
156
- );
157
146
  Object.assign(self.rewriteTransforms, {
158
147
  AssignmentExpression(path) {
159
148
  if (path.node.operator !== '+=') return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/rewriter",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "A transpilation tool mainly used for instrumentation",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",