quip-apps-api
Advanced tools
Comparing version 1.0.0-alpha.14 to 1.0.0-alpha.15
@@ -9,3 +9,3 @@ "use strict"; | ||
})(PropertyType || (PropertyType = {})); | ||
function applyRecordSnapshot(record, data) { | ||
function applyRecordSnapshot(record, data, legacyTypes = {}) { | ||
const statics = record.constructor; | ||
@@ -15,3 +15,3 @@ // Don't allow new defaults to exist on old records. | ||
record.data_ = {}; | ||
const properties = statics.getProperties(); | ||
const properties = Object.assign(Object.assign({}, statics.getProperties()), legacyTypes); | ||
for (const key in data) { | ||
@@ -38,3 +38,3 @@ const node = data[key]; | ||
} | ||
else { | ||
else if (!node || node.t !== PropertyType.RECORD_LIST) { | ||
record.set(key, node ? node.v : undefined); | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "quip-apps-api", | ||
"version": "1.0.0-alpha.14", | ||
"version": "1.0.0-alpha.15", | ||
"description": "Quip Live Apps API", | ||
@@ -41,3 +41,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "c74b5a6981cfa16072d536d5b4e73537ba2f2d2b" | ||
"gitHead": "63247adb7548e3e0c4b61302e7156e9377dab57f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148054