Socket
Socket
Sign inDemoInstall

@dawnjs/babel-preset-dawn

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dawnjs/babel-preset-dawn - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

23

CHANGELOG.md

@@ -0,1 +1,24 @@

# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 2.1.0 (2021-04-12)
### Features
* add @dawnjs/dn-middleware-rollup ([9fcf9ff](https://github.com/alibaba/dawn/commit/9fcf9ffa269a8c1fe5c8744ab92e693f30fd98f2))
* **@dawnjs/dn-middleware-babel:** Use @dawnjs/babel-preset-dawn instead ([e00a2ff](https://github.com/alibaba/dawn/commit/e00a2ff76e3d4b7bad4ddbc740d3c2adb42da6bc))
* **@dawnjs/dn-middleware-call:** add @dawnjs/dn-middleware-call ([3dbb9fe](https://github.com/alibaba/dawn/commit/3dbb9fe8fbadb0e9b318c24e3c59510eeef3ca25))
### Reverts
* Revert "chore: publish" ([e32dbd0](https://github.com/alibaba/dawn/commit/e32dbd0d9aa3f3b76e6e707504840c1b7e8c0705))
# Changelog

@@ -2,0 +25,0 @@

2

lib/index.d.ts

@@ -8,3 +8,3 @@ interface IOpts {

}
declare const _default: (context: any, opts?: IOpts) => {
declare const _default: (opts?: IOpts) => {
presets: any;

@@ -11,0 +11,0 @@ plugins: any;

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from) {

@@ -8,2 +19,3 @@ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)

Object.defineProperty(exports, "__esModule", { value: true });
var path_1 = require("path");
function toObject(obj) {

@@ -21,3 +33,3 @@ return typeof obj === "object" ? obj : {};

}
exports.default = (function (context, opts) {
exports.default = (function (opts) {
if (opts === void 0) { opts = {}; }

@@ -43,3 +55,6 @@ return {

["@babel/plugin-proposal-class-properties", { loose: true }],
opts.transformRuntime && ["@babel/plugin-transform-runtime", toObject(opts.transformRuntime)],
opts.transformRuntime && [
"@babel/plugin-transform-runtime",
__assign({ version: require("@babel/runtime/package.json").version, absoluteRuntime: path_1.dirname(require.resolve("@babel/runtime/package.json")), useESModules: true }, toObject(opts.transformRuntime)),
],
"@babel/plugin-proposal-function-bind",

@@ -46,0 +61,0 @@ "@babel/plugin-proposal-logical-assignment-operators",

{
"name": "@dawnjs/babel-preset-dawn",
"version": "2.0.2",
"version": "2.1.0",
"description": "Basic babel preset",

@@ -9,3 +9,3 @@ "keywords": [

],
"homepage": "http://dawnjs.com/",
"homepage": "http://dawnjs.com",
"license": "MIT",

@@ -17,3 +17,2 @@ "main": "lib/index.js",

"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"

@@ -23,3 +22,3 @@ },

"type": "git",
"url": "git+https://github.com/alibaba/dawn.git"
"url": "https://github.com/alibaba/dawn.git"
},

@@ -30,4 +29,3 @@ "scripts": {

"build": "tsc",
"prepublishOnly": "npm run build",
"test": "echo \"Error: run tests from root\" && exit 1"
"prepublishOnly": "npm run build"
},

@@ -58,3 +56,9 @@ "bugs": {

},
"gitHead": "36c64de803d04c479ee82bddcb0314577cd51b9a"
"peerDependencies": {
"@babel/core": "^7.13.14"
},
"devDependencies": {
"@babel/core": "^7.13.14"
},
"gitHead": "650b801eda34c844a057c20ad5d54569b6bb7453"
}
# @dawnjs/babel-preset-dawn
[![npm](https://img.shields.io/npm/v/@dawnjs/babel-preset-dawn)](https://www.npmjs.com/package/@dawnjs/babel-preset-dawn)
[![npm](https://img.shields.io/npm/dw/@dawnjs/babel-preset-dawn)](<(https://www.npmjs.com/package/@dawnjs/babel-preset-dawn)>)
## Usage
In `.babelrc` :
```json
{
"presets": [
[
"@dawnjs/babel-preset-dawn",
{
"typescript": true,
"react": {
"development": true
}
}
]
]
}
```
## Options

@@ -4,0 +25,0 @@

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