@glimmer/vm-babel-plugins
Advanced tools
Comparing version 0.84.3 to 0.85.2
{ | ||
"name": "@glimmer/vm-babel-plugins", | ||
"version": "0.84.3", | ||
"version": "0.85.2", | ||
"description": "Compiles out VM assertion and deprecation utilities and debug tooling based on environment", | ||
@@ -9,4 +9,4 @@ "repository": "https://github.com/glimmerjs/glimmer.js", | ||
"private": false, | ||
"scripts": { | ||
"test": "mocha -r esm" | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
@@ -17,12 +17,22 @@ "dependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"@babel/preset-env": "^7.8.3", | ||
"babel-plugin-tester": "^10.0.0", | ||
"esm": "^3.2.25", | ||
"mocha": "^8.2.1" | ||
"babel-plugin-tester": "^11.0.4", | ||
"mocha": "^10.2.0", | ||
"@glimmer-workspace/build-support": "^1.0.0" | ||
}, | ||
"volta": { | ||
"node": "12.16.1", | ||
"yarn": "1.22.4" | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"test": "mocha", | ||
"test:lint": "eslint .", | ||
"test:types": "tsc --noEmit -p ../tsconfig.json", | ||
"build": "rollup -c rollup.config.mjs" | ||
}, | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.js" | ||
} | ||
} | ||
} |
let vmBabelPlugins = require('../../../index'); | ||
module.exports = { | ||
plugins: [ | ||
...vmBabelPlugins() | ||
] | ||
} | ||
plugins: [...vmBabelPlugins()], | ||
}; |
import { assert, deprecate } from '@glimmer/global-context'; | ||
if ( | ||
true | ||
/* DEBUG */ | ||
) { | ||
if (true /* DEBUG */) { | ||
console.log('foo'); | ||
} | ||
true && | ||
@@ -11,0 +6,0 @@ assert(foo, 'TESTING 123', { |
import { assert, deprecate } from '@glimmer/global-context'; | ||
if ( | ||
false | ||
/* DEBUG */ | ||
) { | ||
if (false /* DEBUG */) { | ||
console.log('foo'); | ||
} | ||
false && | ||
@@ -11,0 +6,0 @@ assert(foo, 'TESTING 123', { |
import { assert, deprecate } from '@glimmer/global-context'; | ||
if ( | ||
true | ||
/* DEBUG */ | ||
) { | ||
if (true /* DEBUG */) { | ||
console.log('foo'); | ||
} | ||
true && | ||
@@ -11,0 +6,0 @@ assert(foo, 'TESTING 123', { |
@@ -1,3 +0,5 @@ | ||
import pluginTester from 'babel-plugin-tester'; | ||
import path from 'path'; | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
/* eslint-disable @typescript-eslint/no-require-imports */ | ||
const path = require('node:path'); | ||
const pluginTester = require('babel-plugin-tester'); | ||
@@ -4,0 +6,0 @@ // For correct .babelrc detection inside the fixture directory we need to force babel's cwd and root to be the package root. |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14498
3
24
195
2