Comparing version 2.1.1 to 2.2.0
# Svelte changelog | ||
## 2.2.0 | ||
* Internal refactoring ([#1367](https://github.com/sveltejs/svelte/pull/1367)) | ||
## 2.1.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "svelte", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "The magical disappearing UI framework", | ||
@@ -5,0 +5,0 @@ "main": "compiler/svelte.js", |
@@ -346,2 +346,40 @@ function noop() {} | ||
function spread(args) { | ||
const attributes = Object.assign({}, ...args); | ||
let str = ''; | ||
Object.keys(attributes).forEach(name => { | ||
const value = attributes[name]; | ||
if (value === undefined) return; | ||
if (value === true) str += " " + name; | ||
str += " " + name + "=" + JSON.stringify(value); | ||
}); | ||
return str; | ||
} | ||
const escaped = { | ||
'"': '"', | ||
"'": ''', | ||
'&': '&', | ||
'<': '<', | ||
'>': '>' | ||
}; | ||
function escape(html) { | ||
return String(html).replace(/["'&<>]/g, match => escaped[match]); | ||
} | ||
function each(items, assign, fn) { | ||
let str = ''; | ||
for (let i = 0; i < items.length; i += 1) { | ||
str += fn(assign(items[i], i)); | ||
} | ||
return str; | ||
} | ||
const missingComponent = { | ||
_render: () => '' | ||
}; | ||
function linear(t) { | ||
@@ -719,2 +757,2 @@ return t; | ||
export { blankObject, destroy, destroyDev, _differs, _differsImmutable, fire, get, init, on, run, set, _set, setDev, callAll, _mount, _unmount, isPromise, PENDING, SUCCESS, FAILURE, removeFromStore, proto, protoDev, appendNode, insertNode, detachNode, detachBetween, detachBefore, detachAfter, reinsertBetween, reinsertChildren, reinsertAfter, reinsertBefore, destroyEach, createFragment, createElement, createSvgElement, createText, createComment, addListener, removeListener, setAttribute, setAttributes, removeAttribute, setXlinkAttribute, getBindingGroupValue, toNumber, timeRangesToArray, children, claimElement, claimText, setInputType, setStyle, selectOption, selectOptions, selectValue, selectMultipleValue, destroyBlock, outroAndDestroyBlock, updateKeyedEach, getSpreadUpdate, linear, generateRule, hash, wrapTransition, transitionManager, noop, assign, assignTrue }; | ||
export { blankObject, destroy, destroyDev, _differs, _differsImmutable, fire, get, init, on, run, set, _set, setDev, callAll, _mount, _unmount, isPromise, PENDING, SUCCESS, FAILURE, removeFromStore, proto, protoDev, appendNode, insertNode, detachNode, detachBetween, detachBefore, detachAfter, reinsertBetween, reinsertChildren, reinsertAfter, reinsertBefore, destroyEach, createFragment, createElement, createSvgElement, createText, createComment, addListener, removeListener, setAttribute, setAttributes, removeAttribute, setXlinkAttribute, getBindingGroupValue, toNumber, timeRangesToArray, children, claimElement, claimText, setInputType, setStyle, selectOption, selectOptions, selectValue, selectMultipleValue, destroyBlock, outroAndDestroyBlock, updateKeyedEach, getSpreadUpdate, spread, escaped, escape, each, missingComponent, linear, generateRule, hash, wrapTransition, transitionManager, noop, assign, assignTrue }; |
Sorry, the diff of this file is too big to display
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
2514381
11
23271