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

babel-plugin-transform-taroapi

Package Overview
Dependencies
Maintainers
2
Versions
783
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-taroapi - npm Package Compare versions

Comparing version 2.0.4 to 3.0.0-alpha.5

__tests__/__snapshots__/index-test.ts.snap

28

package.json
{
"name": "babel-plugin-transform-taroapi",
"version": "2.0.4",
"main": "dist/index.js",
"license": "MIT",
"version": "3.0.0-alpha.5",
"main": "lib/index.js",
"scripts": {
"build": "npm run test && tsc",
"dev": "jest --watch",
"prepack": "npm run build",
"test": "jest"
"build": "tsc"
},
"devDependencies": {
"@tarojs/taro-h5": "2.0.4",
"@types/babel-core": "^6.25.5",
"@types/babel-traverse": "^6.25.4",
"@types/babel-types": "^7.0.4",
"@types/jest": "^23.3.13",
"@types/node": "^10.12.18",
"babel-core": "^6.26.3",
"babel-types": "^6.26.0",
"jest": "23.6.0",
"ts-jest": "^23.10.5",
"tslint": "^5.12.1",
"tslint-config-prettier": "^1.17.0",
"tslint-config-standard": "^8.0.1",
"typescript": "^3.2.4"
}
"license": "MIT",
"gitHead": "730c1bb119a57302c44a2f9fc6ebf861f92f62bb"
}

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

import { types as Types, PluginObj } from 'babel-core';
import { types as Types, PluginObj } from 'babel-core'

@@ -7,3 +7,3 @@ const plugin = function (babel: {

const t = babel.types
// 这些变量需要在每个programe里重置

@@ -10,0 +10,0 @@ const invokedApis: Map<string, string> = new Map()

@@ -20,3 +20,6 @@ {

"traceResolution": false,
"types": ["jest"]
"types": ["jest"],
"paths": {
"@tarojs/taro-h5": ["../packages/taro-h5"]
}
},

@@ -23,0 +26,0 @@ "include": [

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

declare module "@tarojs/taro-h5/dist/taroApis" {
declare module '@tarojs/taro-h5/dist/taroApis' {
export const apis: {

@@ -3,0 +3,0 @@ [key: string]: boolean

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