Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@voltiso/transform

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voltiso/transform - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

3

dist/cjs/_/copied-from-util/_deepMerge.js

@@ -13,4 +13,3 @@ "use strict";

for (const k of Object.keys(objectB)) {
if (Object === result[k]?.constructor &&
Object === objectB[k]?.constructor) {
if (Object === result[k].constructor && Object === objectB[k].constructor) {
// eslint-disable-next-line etc/no-internal

@@ -17,0 +16,0 @@ result[k] = _deepMerge2(result[k], objectB[k]);

@@ -6,3 +6,3 @@ /**

*/
export declare type DeepPartial_<T> = [
export type DeepPartial_<T> = [
{

@@ -9,0 +9,0 @@ [k in keyof T]?: DeepPartial_<T[k]>;

import type { TransformContext } from '@voltiso/transform.lib';
import ts from 'typescript';
import type ts from 'typescript';
export declare function logCallInfoNode(ctx: TransformContext, node: ts.Node): void;
//# sourceMappingURL=logCallInfoNode.d.ts.map

@@ -1,2 +0,2 @@

export declare type CompatTransformOptions = {
export type CompatTransformOptions = {
supported: {

@@ -17,4 +17,4 @@ /**

};
export declare type CompatFeature = keyof CompatTransformOptions['supported'];
export type CompatFeature = keyof CompatTransformOptions['supported'];
export declare const defaultCompatTransformOptions: CompatTransformOptions;
//# sourceMappingURL=CompatTransformOptions.d.ts.map

@@ -46,14 +46,15 @@ "use strict";

/** `numericSeparators` */
if (!options.supported.numericSeparators &&
ts.isNumericLiteral(node) &&
node.getText(sourceFile)) {
const nodeText = node.getText();
if (nodeText.includes('_')) {
const newNodeStr = nodeText.replace(/_/gu, '');
(0, _2.logCompatTransformNode)(ctx, node, newNodeStr, {
feature: 'numericSeparators',
});
return ts.factory.createNumericLiteral(newNodeStr);
// return ts.factory.createNumericLiteral(node.text)
if (!options.supported.numericSeparators && ts.isNumericLiteral(node)) {
try {
const nodeText = node.getText(sourceFile);
if (nodeText && nodeText.includes('_')) {
const newNodeStr = nodeText.replace(/_/gu, '');
(0, _2.logCompatTransformNode)(ctx, node, newNodeStr, {
feature: 'numericSeparators',
});
return ts.factory.createNumericLiteral(newNodeStr);
// return ts.factory.createNumericLiteral(node.text)
}
}
catch { }
}

@@ -60,0 +61,0 @@ /** `undefined` to `void 0` */

import type { TransformContext } from '@voltiso/transform.lib';
import * as ts from 'typescript';
export declare type InlineTransformOptions = {
export type InlineTransformOptions = {
onInlineError?: 'fail' | undefined;

@@ -5,0 +5,0 @@ };

@@ -10,4 +10,3 @@ // ⠀ⓥ 2023 🌩 🌩 ⠀ ⠀

for (const k of Object.keys(objectB)) {
if (Object === result[k]?.constructor &&
Object === objectB[k]?.constructor) {
if (Object === result[k].constructor && Object === objectB[k].constructor) {
// eslint-disable-next-line etc/no-internal

@@ -14,0 +13,0 @@ result[k] = _deepMerge2(result[k], objectB[k]);

@@ -6,3 +6,3 @@ /**

*/
export declare type DeepPartial_<T> = [
export type DeepPartial_<T> = [
{

@@ -9,0 +9,0 @@ [k in keyof T]?: DeepPartial_<T[k]>;

import type { TransformContext } from '@voltiso/transform.lib';
import ts from 'typescript';
import type ts from 'typescript';
export declare function logCallInfoNode(ctx: TransformContext, node: ts.Node): void;
//# sourceMappingURL=logCallInfoNode.d.ts.map

@@ -1,2 +0,2 @@

export declare type CompatTransformOptions = {
export type CompatTransformOptions = {
supported: {

@@ -17,4 +17,4 @@ /**

};
export declare type CompatFeature = keyof CompatTransformOptions['supported'];
export type CompatFeature = keyof CompatTransformOptions['supported'];
export declare const defaultCompatTransformOptions: CompatTransformOptions;
//# sourceMappingURL=CompatTransformOptions.d.ts.map

@@ -20,14 +20,15 @@ // ⠀ⓥ 2023 🌩 🌩 ⠀ ⠀

/** `numericSeparators` */
if (!options.supported.numericSeparators &&
ts.isNumericLiteral(node) &&
node.getText(sourceFile)) {
const nodeText = node.getText();
if (nodeText.includes('_')) {
const newNodeStr = nodeText.replace(/_/gu, '');
logCompatTransformNode(ctx, node, newNodeStr, {
feature: 'numericSeparators',
});
return ts.factory.createNumericLiteral(newNodeStr);
// return ts.factory.createNumericLiteral(node.text)
if (!options.supported.numericSeparators && ts.isNumericLiteral(node)) {
try {
const nodeText = node.getText(sourceFile);
if (nodeText && nodeText.includes('_')) {
const newNodeStr = nodeText.replace(/_/gu, '');
logCompatTransformNode(ctx, node, newNodeStr, {
feature: 'numericSeparators',
});
return ts.factory.createNumericLiteral(newNodeStr);
// return ts.factory.createNumericLiteral(node.text)
}
}
catch { }
}

@@ -34,0 +35,0 @@ /** `undefined` to `void 0` */

import type { TransformContext } from '@voltiso/transform.lib';
import * as ts from 'typescript';
export declare type InlineTransformOptions = {
export type InlineTransformOptions = {
onInlineError?: 'fail' | undefined;

@@ -5,0 +5,0 @@ };

{
"name": "@voltiso/transform",
"version": "3.1.0",
"version": "3.1.1",
"license": "MIT",

@@ -63,4 +63,4 @@ "repository": "git://github.com/voltiso/mono.git",

"dependencies": {
"chalk": "^4",
"@voltiso/transform.lib": "^1.0.1"
"chalk": "^4.1.2 || 5_is_esm_only",
"@voltiso/transform.lib": "^1.0.2"
},

@@ -71,10 +71,6 @@ "peerDependencies": {

"devDependencies": {
"typescript": "^5.2.2",
"typescript-transform-paths": "^3.4.6",
"typescript": "^4.8.4",
"@voltiso/config.tsdoc": "^3.0.0"
},
"__________MISC": "__________",
"engines": {
"node": "16"
},
"scripts": {

@@ -81,0 +77,0 @@ "__________DEV": "__________",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc