New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alamode

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alamode - npm Package Compare versions

Comparing version 3.5.2 to 3.6.0

compile/alamode.js

0

build/alanode.js

@@ -0,0 +0,0 @@ #!/usr/bin/env node

@@ -0,1 +1,8 @@

## 14 March 2020
### [3.6.0](https://github.com/a-la/alamode/compare/v3.5.1...v3.6.0)
- [fix] Fix ÀLaNode.
- [feature] Rename imports' paths for JSX if necessary.
## 23 February 2020

@@ -2,0 +9,0 @@

2

compile/index.js

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

const $alamode = require('./depack')
const $alamode = require('./alamode')

@@ -3,0 +3,0 @@ /**

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

const $alamode = require('./depack')
const $alamode = require('./alamode')

@@ -3,0 +3,0 @@ /**

{
"name": "alamode",
"version": "3.5.2",
"version": "3.6.0",
"description": "A Regex-Based Transpiler Of Source Code To Allow Writing Import And Export Statements And JSX With 0 Dependencies.",

@@ -24,3 +24,3 @@ "main": "compile/index.js",

"compile": "depack src/bin/alamode -c -a -p -o compile/bin --externs types/externs.js -s -S",
"lib": "depack src/depack -c -a -p -o compile -s",
"lib": "depack src/depack -c -a -p -o compile/alamode.js -s --source_map_include_content",
"depack": "yarn-s compile lib",

@@ -84,4 +84,4 @@ "alamode": "compile/bin/alamode.js",

"@a-la/fixture-babel": "1.2.2",
"@a-la/import": "^1.11.0",
"@a-la/jsx": "^1.6.3",
"@a-la/import": "^1.12.0",
"@a-la/jsx": "^1.7.2",
"@a-la/markers": "^1.3.0",

@@ -95,4 +95,4 @@ "@a-la/source-map-generator": "^1.0.1",

"catchment": "^3.3.0",
"depack": "^1.1.1",
"documentary": "^1.37.0",
"depack": "^1.1.2",
"documentary": "^1.37.1",
"erte": "^1.2.0",

@@ -99,0 +99,0 @@ "eslint-config-artdeco": "1.0.1",

@@ -5,2 +5,3 @@ # ÀLaMode

[![Build status](https://ci.appveyor.com/api/projects/status/owaagwyeh6b8pwc5?svg=true)](https://ci.appveyor.com/project/4r7d3c0/alamode)
![Node.js CI](https://github.com/a-la/alamode/workflows/Node.js%20CI/badge.svg)

@@ -15,2 +16,3 @@ _ÀLaMode_ is a RegExp-based transpiler of source code in _Node.JS_ that supports transpilation of `import` and `export` statements including source map for debugging, while keeping the original code pretty much the same (no _interrop_ require). It also can transpile JSX (without source maps ATM and some minor limitations).

yarn add -D alamode
npm i --save-dev alamode
```

@@ -231,3 +233,2 @@

<p align="center"><a href="#table-of-contents">

@@ -626,3 +627,8 @@ <img src="/.documentary/section-breaks/4.svg?sanitize=true">

```m
Too many parameters - example/require
example/require
├── debug.js
├── index.js
├── lib.js
├── multiple.js
└── require.js
```

@@ -672,6 +678,5 @@

```
win32:x64
darwin:x64
```
<strong><a name="type-_alamodehookconfig">`_alamode.HookConfig`</a></strong>: The options for ÀLaMode Hook.

@@ -711,3 +716,3 @@

Reverting JSX hook to add new one, pragma:
const { h } = require("./node_modules\preact");
const { h } = require("./node_modules/preact");
```

@@ -759,17 +764,17 @@

```
C:\Users\anton\4r7d3c0\alamode\example\trouble.js:5
example/trouble.js:5
export const test = 'hello world'
^^^^^^
SyntaxError: Unexpected token 'export'
at Module._compile (internal/modules/cjs/loader.js:891:18)
at Module.p._compile (C:\Users\anton\4r7d3c0\alamode\node_modules\alamode\compile\depack.js:49:18)
at Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Object.h.<computed>.y._extensions.<computed> [as .js] (C:\Users\anton\4r7d3c0\alamode\node_modules\alamode\compile\depack.js:51:7)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (C:\Users\anton\4r7d3c0\alamode\node_modules\documentary\build\fork.js:2:1)
at Module._compile (internal/modules/cjs/loader.js:955:30)
SyntaxError: Unexpected token export
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Module.p._compile (node_modules/alamode/compile/depack.js:49:18)
at Module._extensions..js (module.js:664:10)
at Object.k.(anonymous function).y._extensions.(anonymous function) [as .js] (node_modules/alamode/compile/depack.js:51:7)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
```

@@ -787,3 +792,2 @@

<p align="center"><a href="#table-of-contents">

@@ -793,3 +797,2 @@ <img src="/.documentary/section-breaks/17.svg?sanitize=true">

## Copyright & License

@@ -796,0 +799,0 @@

#!/usr/bin/env node
require('../..')()
require('./alamode')

@@ -91,7 +91,12 @@ /**

/**
* Whether the source maps are disabled, and whitespace does not need to be added for `module.exports`.
* @type {boolean}
* Whether the source maps are disabled, and whitespace does not need to be added for `module.exports`. Default `false`.
* @type {boolean|undefined}
*/
_alamode.ÀLaMode.prototype.noSourceMaps
/**
* Debug mode. Default `false`.
* @type {boolean|undefined}
*/
_alamode.ÀLaMode.prototype.stopProcessing
/**
* Whether the stream is running in async mode, that is, not the require hook.

@@ -102,2 +107,7 @@ * @type {boolean}

/**
* Only remap imports' locations, without transpiling into require. Default `false`.
* @type {boolean|undefined}
*/
_alamode.ÀLaMode.prototype.renameOnly
/**
* A sync replacement function with ÀLaMode as its `this` context.

@@ -107,1 +117,8 @@ * @typedef {function(this: _alamode.ÀLaMode, ...string): string}

_alamode.ÀLaModeReplacer
/* typal types/api.xml externs */
/**
* Enable transpilation of files on-the file as a require hook.
* @typedef {function(!_alamode.HookConfig=)}
*/
_alamode.alamode

@@ -24,4 +24,6 @@ export {}

* @prop {string} file The current file being processed.
* @prop {boolean} noSourceMaps Whether the source maps are disabled, and whitespace does not need to be added for `module.exports`.
* @prop {boolean} [noSourceMaps=false] Whether the source maps are disabled, and whitespace does not need to be added for `module.exports`. Default `false`.
* @prop {boolean} [stopProcessing=false] Debug mode. Default `false`.
* @prop {boolean} async Whether the stream is running in async mode, that is, not the require hook.
* @prop {boolean} [renameOnly=false] Only remap imports' locations, without transpiling into require. Default `false`.
* @typedef {_alamode.ÀLaModeReplacer} ÀLaModeReplacer A sync replacement function with ÀLaMode as its `this` context.

@@ -28,0 +30,0 @@ * @typedef {function(this: _alamode.ÀLaMode, ...string): string} _alamode.ÀLaModeReplacer A sync replacement function with ÀLaMode as its `this` context.

Sorry, the diff of this file is too big to display

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