Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ var Stack = function () {
* @method Assets
* @description Set the Asset Uid which you want to retrive the Asset.
* @param {String} uid - asset_uid
* @example Stack.Assets('blt1234567890abcef')
* @example Stack.Assets('blt1234567890abcef').fetch
* @returns {Assets}
*/

Expand Down Expand Up @@ -894,7 +894,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

//JS SDK version
var version = '3.3.0';
var version = '3.4.0';

function Request(options) {
return new Promise(function (resolve, reject) {
Expand Down Expand Up @@ -2442,17 +2442,6 @@ var Assets = function () {
return this;
}

/**
* @method Query
* @description Query instance to provide support for all search queries.
* @example Assets().Query()
* @returns {Query}
*/
// Query() {
// let query = new Query();
// return Utils.merge(query, this);
// }

/**
* @method toJSON
* @description This method is used to convert the result in to plain javascript object.
Expand Down
1 change: 1 addition & 0 deletions nativescript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist/nativescript/contentstack');
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"buildnode": "webpack --config webpack/webpack.node.js",
"buildweb": "webpack -p --config webpack/webpack.web.js",
"buildreactnative": "webpack --config webpack/webpack.react-native.js",
"buildnativescript": "webpack --config webpack/webpack.native-script.js",
"buildnativescript": "webpack --config webpack/webpack.nativescript.js",
"buildall": "npm run buildnode&npm run buildweb&npm run buildreactnative&npm run buildnativescript",
"generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose"
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ module.exports = function(options) {
output: {
library: "Contentstack",
libraryTarget: "commonjs2",
path: path.join(__dirname, "../dist/native-script"),
path: path.join(__dirname, "../dist/nativescript"),
filename: "contentstack.js"
},
resolve: {
alias: {
runtime: path.resolve(__dirname, '../src/runtime/native-script')
runtime: path.resolve(__dirname, '../src/runtime/nativescript')
},
modules: [
'../src',
Expand Down