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

@expo/plist

Package Overview
Dependencies
Maintainers
27
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/plist - npm Package Compare versions

Comparing version 0.1.4-canary-20240912-1059f85 to 0.1.4-canary-20240927-ab8a962

17

build/build.js
"use strict";
/* eslint-disable */
/* (The MIT License)

@@ -109,3 +108,3 @@

const name = type(next);
if (name == 'Undefined') {
if (name === 'Undefined') {
}

@@ -121,3 +120,3 @@ else if (Array.isArray(next)) {

}
else if (name == 'Object') {
else if (name === 'Object') {
next_child = next_child.ele('dict');

@@ -131,3 +130,3 @@ for (prop in next) {

}
else if (name == 'Number') {
else if (name === 'Number') {
// detect if this is an integer or real

@@ -138,15 +137,15 @@ // TODO: add an ability to force one way or another via a "cast"

}
else if (name == 'Date') {
else if (name === 'Date') {
next_child.ele('date').txt(ISODateString(new Date(next)));
}
else if (name == 'Boolean') {
else if (name === 'Boolean') {
next_child.ele(next ? 'true' : 'false');
}
else if (name == 'String') {
else if (name === 'String') {
next_child.ele('string').txt(next);
}
else if (name == 'ArrayBuffer') {
else if (name === 'ArrayBuffer') {
next_child.ele('data').raw(base64_js_1.default.fromByteArray(next));
}
else if (next && next.buffer && type(next.buffer) == 'ArrayBuffer') {
else if (next && next.buffer && type(next.buffer) === 'ArrayBuffer') {
// a typed array

@@ -153,0 +152,0 @@ next_child.ele('data').raw(base64_js_1.default.fromByteArray(new Uint8Array(next.buffer)));

"use strict";
/* eslint-disable */
/* (The MIT License)

@@ -51,3 +50,3 @@

* <key />
* this node shoud be ignored.
* this node should be ignored.
*

@@ -70,3 +69,3 @@ * @see https://github.com/TooTallNate/plist.js/issues/66

function parse(xml) {
// prevent the parser from logging non-fatel errors
// prevent the parser from logging non-fatal errors
const doc = new xmldom_1.DOMParser({ errorHandler() { } }).parseFromString(xml);

@@ -77,3 +76,3 @@ (0, assert_1.default)(doc.documentElement.nodeName === 'plist', 'malformed document. First element should be <plist>');

// so pull out the inner data first
if (plist.length == 1)
if (plist.length === 1)
plist = plist[0];

@@ -80,0 +79,0 @@ return plist;

{
"name": "@expo/plist",
"version": "0.1.4-canary-20240912-1059f85",
"version": "0.1.4-canary-20240927-ab8a962",
"description": "Mac OS X Plist parser/builder for Node.js and browsers",

@@ -39,3 +39,3 @@ "main": "build/index.js",

"@types/base64-js": "^1.2.5",
"expo-module-scripts": "3.6.0-canary-20240912-1059f85"
"expo-module-scripts": "3.6.0-canary-20240927-ab8a962"
},

@@ -45,3 +45,3 @@ "publishConfig": {

},
"gitHead": "1059f8556047a3e02fa319e8b2459274571f4e6f"
"gitHead": "ab8a962d2c3dddbda124a6bd88d24475831dae00"
}

Sorry, the diff of this file is not supported yet

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