Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dw/wx-audio

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dw/wx-audio - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

lib/wx-audio.js

23

package.json
{
"name": "@dw/wx-audio",
"version": "1.0.5",
"version": "1.0.6",
"description": "wx-audio",

@@ -9,2 +9,3 @@ "main": "lib/wx-audio.js",

"build": "webpack --mode production",
"build:publish": "webpack --mode production && npm version patch && npm publish",
"dev": "webpack-dev-server --mode development --progress --colors",

@@ -14,2 +15,6 @@ "watch": "webpack --progress --colors --watch",

},
"repository": {
"type": "git",
"url": "https://www.github.com/ifmiss/wx-audio.js"
},
"files": [

@@ -19,6 +24,2 @@ "lib/",

],
"repository": {
"type": "git",
"url": "https://www.github.com/ifmiss/wx-audio.js"
},
"keywords": [

@@ -40,18 +41,14 @@ "audio",

"babel-preset-latest": "^6.24.1",
"better-scroll": "^1.8.4",
"compass-mixins": "^0.12.10",
"css-loader": "^0.28.10",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"html-webpack-plugin": "^3.0.6",
"node-sass": "^4.11.0",
"sass-loader": "^6.0.7",
"style-loader": "^0.20.3",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"url-loader": "^1.0.1",
"url-parse": "^1.4.3",
"webpack": "^4.1.1",
"webpack-cli": "^2.1.5",
"webpack-dev-server": "^3.1.1"
"webpack-dev-server": "^3.1.1",
"webpack-cli": "^3.3.1"
}
}

@@ -19,3 +19,4 @@ # wx-audio

```js
import WxAudio from 'wx-audio'
import WxAudio from '@dw/wx-audio/lib/wx-audio.css'
import WxAudio from '@dw/wx-audio'
```

@@ -37,2 +38,3 @@

width: '320px',
autoplay: true,
loop: true,

@@ -53,2 +55,3 @@ ended: function () {

- ended 方法,是一个回调,可在音乐播放结束之后执行其他的代码
- autoplay 属性, 是否自动播放,这个只能在微信浏览器以及只设置静态src才能自动播放
### 方法

@@ -55,0 +58,0 @@ ```js

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