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

mobileprovision-parse

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobileprovision-parse - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

30

index.js
var htmlDecode = require('htmlEncode').htmlDecode
var exec = require('child_process').exec
var child_process = require('child_process')
function exec(cmd, opt) {
opt = Object.assign({
cwd: __dirname
}, opt)
return new Promise((resolve, reject) => {
child_process.exec(cmd, opt, (err, stdout, stderr) => {
if(err) {
reject(stderr)
} else {
resolve(stdout)
}
})
})
}
function getVal(xml, name) {

@@ -45,13 +60,12 @@ var m = new RegExp(`<key>${name}<\\/key>\\n\\s*<string>(.+)<\\/string>`)

var cmd = `security cms -D -i ${profilePath}`
exec(cmd, (err, stdout, stderr) => {
if(!err) {
return exec(cmd)
.then(stdout => {
var info = getInfo(stdout)
if(typeof cb === 'function') {
cb(getInfo(stdout))
cb(info)
}
} else {
throw new Error(stderr)
}
})
return Promise.resolve(info)
})
}
module.exports = main
{
"name": "mobileprovision-parse",
"version": "0.0.5",
"version": "0.1.0",
"description": "mobileprovision-parse",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,5 +9,6 @@ # mobileprovision-parse

var parse = require('mobileprovision-parse')
parse('xxx.mobileprovision', info => {
console.log(info)
})
parse('xxx.mobileprovision')
.then(info => {
console.log(info)
})
```
var parse = require('../index')
parse('/Users/guoshengqiang/Documents/项目资源/uileader/iOS/dev.mobileprovision', info => {
console.log(info)
})
parse('/Users/guoshengqiang/Documents/项目资源/uileader/iOS/dev.mobileprovision')
.then(info => {
console.log('mobileprovision info: ', info)
})
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