Socket
Book a DemoInstallSign in
Socket

@tenonhq/sincronia-babel-preset-servicenow

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tenonhq/sincronia-babel-preset-servicenow

ServiceNow Sanitizer Plugin

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
3
-95.89%
Maintainers
11
Weekly downloads
 
Created
Source

@sincronia/babel-preset-servicenow

Overview

This Babel preset is meant to run absolutely last of all plugins and presets. Its purpose is to remove or refactor any code that might break ServiceNow's serverside Rhino engine. Right now it is fairly simple, but it might be enhanced in the future if more issues are discovered.

Installation

npm i -D @sincronia/babel-preset-servicenow

After the installation is completed, add it to the presets section of your Babel configuration.

Sanitizer

The sanitizer performs various operations on code to make it safe for ServiceNow

__proto__ references

ServiceNow blocks references to __proto__ on the serverside. This is sidestepped by changing all references to __proto__ to __proto-sn__. So far all functionality has been preserved in transpiled output.

test.__proto__ = {};

becomes...

test.__proto-sn__ = {};

Keyword Identifiers

ServiceNow does not allow properties of objects that have the same name as keywords to be accessed directly. This is sidestepped by using the index syntax instead.

test.default;

becomes...

test["default"]

FAQs

Package last updated on 17 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.