From 420779f515ca2df3cde7b8f6f383f9ead8e127a6 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 18 Sep 2022 21:29:52 +0800 Subject: + swap promises to use arrow function for correct 'this' context --- babel-plugin-async-to-promises/package.json | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 babel-plugin-async-to-promises/package.json (limited to 'babel-plugin-async-to-promises/package.json') diff --git a/babel-plugin-async-to-promises/package.json b/babel-plugin-async-to-promises/package.json new file mode 100644 index 0000000..d13f0b1 --- /dev/null +++ b/babel-plugin-async-to-promises/package.json @@ -0,0 +1,49 @@ +{ + "name": "babel-plugin-async-to-promises", + "version": "1.0.5", + "description": "Transpile ES7 async/await to vanilla ES6 Promise chains", + "repository": "marten-de-vries/kneden", + "author": "Marten de Vries", + "main": "lib/index.js", + "devDependencies": { + "babel-cli": "^6.4.5", + "babel-core": "^6.3.17", + "babel-eslint": "^6.0.0-beta.6", + "babel-istanbul": "^0.8.0", + "babel-preset-es2015": "^6.3.13", + "babel-register": "^6.4.3", + "eslint": "^2.0.0", + "mocha": "^2.2.5" + }, + "scripts": { + "clean": "rm -rf lib", + "build": "babel src -d lib", + "test": "npm run test:lint && npm run test:cov", + "test:cov": "babel-node node_modules/.bin/babel-istanbul cover _mocha && babel-istanbul check-coverage --statements 100 --functions 100 --branches 100 --lines 100", + "test:js": "mocha --compilers js:babel-register", + "test:lint": "eslint src/*.js test/index.js && eslint test/fixtures/*/*.js", + "test:watch": "npm run test:js -- --watch", + "prepublish": "npm run clean && npm run build" + }, + "keywords": [ + "es", + "7", + "6", + "babel", + "promise", + "async", + "await", + "promises", + "function", + "functions", + "plugin", + "babel-plugin" + ], + "dependencies": { + "babel-helper-hoist-variables": "^6.5.0", + "babel-template": "^6.3.13", + "babel-types": "^6.5.2", + "js-extend": "^1.0.1" + }, + "license": "ISC" +} -- cgit