
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
xtypejs-extension-custom-types
Advanced tools
This extension provides the xtypejs custom types functionality, by providing the xtypejs registerType
API method.
npm install xtypejs-extension-custom-types --save
var xtype = require('xtypejs');
var xtypejsCustomTypesExtension = require('xtypejs-extension-custom-types');
// xtype.ext.registerType method is NOT available here
xtype.ext.registerExtension(xtypejsCustomTypesExtension);
// xtype.ext.registerType method is now available here
Include the extension script after the xtypejs script to automatically register the extension into xtypejs without exporting any globals. This relies on xtypejs being available in the xtype
global variable.
<script src="path/to/xtype.js"></script>
<script src="path/to/xtypejs-extension-custom-types.js"></script>
<script>
// xtype.ext.registerType method is available here
</script>
If the extension script needs to be included before the xtypejs script, or the xtype
global is not available (or is using a different variable name) when the extension script is included, the extension will be exported instead to a global variable named xtypejsCustomTypesExtension
, which must then be manually registered into xtypejs as an extension.
<!--
Assume 'xtype' global variable not available here. The following
exports global variable 'xtypejsCustomTypesExtension'
-->
<script src="path/to/xtypejs-extension-custom-types.js"></script>
<!-- Other things here... -->
<script>
// Assume xtypejs later available here in variable 'myXtype'
myXtype.ext.registerExtension(xtypejsCustomTypesExtension);
// xtype.ext.registerType method is now available here
</script>
For usage details, see the xtypejs registerType
API method documentation.
If the HTML script tag was used to import the extension script in a browser environment and in the absence of xtypejs in the xtype
global variable, the extension will be exported to a global variable named xtypejsCustomTypesExtension
. The noConflict
method of the exported extension can be used to reassign the extension to a different namespace or variable name, and return the global xtypejsCustomTypesExtension
variable to its previous value prior to including the extension script.
var myExtension = xtypejsCustomTypesExtension.noConflict();
/*
* myExtension is now xtypejsCustomTypesExtension, while
* xtypejsCustomTypesExtension variable is now returned to
* its original value prior to inclusion of the extension script.
*/
FAQs
xtypejs Extension - Custom Types
The npm package xtypejs-extension-custom-types receives a total of 1 weekly downloads. As such, xtypejs-extension-custom-types popularity was classified as not popular.
We found that xtypejs-extension-custom-types demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.