Socket
Socket
Sign inDemoInstall

prismic.io

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prismic.io - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

dist/prismic.io-1.0.6.min.js

2

bower.json
{
"name": "prismic-js-SDK",
"version": "1.0.6",
"version": "1.0.7",
"homepage": "https://github.com/prismicio/javascript-kit",

@@ -5,0 +5,0 @@ "authors": [

## Changelog for prismic.io JavaScript development kit
### 1.0.7
#### Bugfixes
* Fixed bug on img.getView when getting the main view, that was introduced in 1.0.6
* Fixed bug on img.getView when getting other views, that seem never to have worked
### 1.0.6

@@ -4,0 +10,0 @@

@@ -932,3 +932,3 @@ (function (Global, undefined) {

getView: function(name) {
if (key === "main") {
if (name === "main") {
return this.main;

@@ -1214,4 +1214,12 @@ } else {

),
field.value.views
{}
);
for (var name in field.value.views) {
var img = field.value.views[name];
output.views[name] = new ImageView(
img.url,
img.dimensions.width,
img.dimensions.height
);
}
break;

@@ -1218,0 +1226,0 @@

@@ -21,2 +21,3 @@ module.exports = function(grunt) {

VERSION: grunt.file.readJSON('bower.json').version,
pkg: grunt.file.readJSON('package.json'),

@@ -23,0 +24,0 @@ qunit: {

@@ -6,3 +6,3 @@ {

"keywords": ["prismic", "prismic.io", "cms", "content", "api"],
"version": "1.0.6",
"version": "1.0.7",
"devDependencies": {

@@ -9,0 +9,0 @@ "grunt": "~0.4.1",

@@ -10,3 +10,3 @@ ## JavaScript development kit for prismic.io

```
https://raw.github.com/prismicio/javascript-kit/master/dist/prismic.io-1.0.6.min.js
https://raw.github.com/prismicio/javascript-kit/master/dist/prismic.io-1.0.7.min.js
```

@@ -49,3 +49,3 @@

You can simply execute this JavaScript kit with a web browser, but more advanced users can feel free to use grunt tasks.
You can simply execute this JavaScript kit with a web browser, but before committing, we kindly ask you to run the ```grunt``` command (it will make sure all tests still pass, and concatenate/minify your changes).

@@ -52,0 +52,0 @@ To install grunt and other required packages: [install Node.js and npm](http://www.joyent.com/blog/installing-node-and-npm/), and then run this from your kit's repository, as an administrator:

@@ -241,3 +241,3 @@ (function (Global, undefined) {

getView: function(name) {
if (key === "main") {
if (name === "main") {
return this.main;

@@ -523,4 +523,12 @@ } else {

),
field.value.views
{}
);
for (var name in field.value.views) {
var img = field.value.views[name];
output.views[name] = new ImageView(
img.url,
img.dimensions.width,
img.dimensions.height
);
}
break;

@@ -527,0 +535,0 @@

@@ -215,2 +215,12 @@ (function(Prismic) {

asyncTest('ImageViews are well retrieved', 2, function() {
Prismic.Api(testRepository, function(Api) {
Api.form('everything').query('[[:d = at(document.id, "UkL0gMuvzYUANCpR")]]').ref(Api.master()).submit(function(results) {
equal(results[0].getImageView('product.image', 'main').asHtml(), '<img src=https://prismic-io.s3.amazonaws.com/lesbonneschoses/f606ad513fcc2a73b909817119b84d6fd0d61a6d.png width=500 height=500>');
equal(results[0].getImageView('product.image', 'icon').asHtml(), '<img src=https://prismic-io.s3.amazonaws.com/lesbonneschoses/fe4f9379ee325456992d48204b8d94aeb60cc976.png width=250 height=250>');
start();
});
}, previewToken);
});
}(window.Prismic));
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