Comparing version 2.3.1 to 2.3.2
## 16 May 2019 | ||
### [2.3.2](https://github.com/a-la/alamode/compare/v2.3.1...v2.3.2) | ||
- [doc] Better example with named imports, fix a typo. | ||
### [2.3.1](https://github.com/a-la/alamode/compare/v2.3.0...v2.3.1) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "alamode", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "A Regex-Based Transpiler Of Source Code To Allow Writing Import And Export Statements And JSX With 0 Dependencies.", | ||
@@ -75,4 +75,4 @@ "main": "depack/index.js", | ||
"@a-la/export": "^1.5.0", | ||
"@a-la/fixture-alamode": "1.1.1", | ||
"@a-la/fixture-babel": "1.2.1", | ||
"@a-la/fixture-alamode": "1.1.3", | ||
"@a-la/fixture-babel": "1.2.2", | ||
"@a-la/import": "^1.9.1", | ||
@@ -79,0 +79,0 @@ "@a-la/jsx": "^1.6.0", |
@@ -32,13 +32,18 @@ # ÀLaMode | ||
```js | ||
import Stream from 'stream' | ||
import { join } from 'stream' | ||
import Stream, { | ||
Transform, | ||
} from 'stream' | ||
import { join } from 'path' | ||
export default class S extends Stream { | ||
export default class S extends Transform { | ||
/** | ||
* Creates a new instance. | ||
* @param {string} path | ||
* @param {Stream} [parent] | ||
*/ | ||
constructor(path) { | ||
constructor(path, parent) { | ||
super() | ||
console.log(join('hello', path)) | ||
this.source = join('example', path) | ||
if (parent instanceof Stream) | ||
this.pipe(parent) | ||
} | ||
@@ -62,6 +67,6 @@ } | ||
} | ||
``` | ||
``` | ||
| ||
``` | ||
@@ -72,13 +77,18 @@ </td> | ||
```js | ||
const Stream = require('stream'); | ||
const { join } = require('stream'); | ||
const Stream = require('stream'); const { | ||
Transform, | ||
} = Stream; | ||
const { join } = require('path'); | ||
class S extends Stream { | ||
class S extends Transform { | ||
/** | ||
* Creates a new instance. | ||
* @param {string} path | ||
* @param {Stream} [parent] | ||
*/ | ||
constructor(path) { | ||
constructor(path, parent) { | ||
super() | ||
console.log(join('hello', path)) | ||
this.source = join('example', path) | ||
if (parent instanceof Stream) | ||
this.pipe(parent) | ||
} | ||
@@ -123,12 +133,16 @@ } | ||
var _path = require("path"); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
class S extends _stream.default { | ||
class S extends _stream.Transform { | ||
/** | ||
* Creates a new instance. | ||
* @param {string} path | ||
* @param {Stream} [parent] | ||
*/ | ||
constructor(path) { | ||
constructor(path, parent) { | ||
super(); | ||
console.log((0, _stream.join)('hello', path)); | ||
this.source = (0, _path.join)('example', path); | ||
if (parent instanceof _stream.default) this.pipe(parent); | ||
} | ||
@@ -724,3 +738,3 @@ | ||
When the call is made multiple times in the program, the latter calls will revert the previous hooks and installed the new ones. The warning will be shown unless the `noWarning` option is set to true. | ||
When the call is made multiple times in the program, the latter calls will revert the previous hooks and install new ones. The warning will be shown unless the `noWarning` option is set to true. | ||
@@ -727,0 +741,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165174
845