Skip to content

Commit 5866340

Browse files
Merge pull request #4 from builtio-contentstack/missingNSfile_hotfix/3.4.0
Added missing nativescript file hotfix/3.4.0
2 parents 0b0e535 + 8fd2d5c commit 5866340

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

dist/native-script/contentstack.js renamed to dist/nativescript/contentstack.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ var Stack = function () {
778778
* @method Assets
779779
* @description Set the Asset Uid which you want to retrive the Asset.
780780
* @param {String} uid - asset_uid
781-
* @example Stack.Assets('blt1234567890abcef')
781+
* @example Stack.Assets('blt1234567890abcef').fetch
782782
* @returns {Assets}
783783
*/
784784

@@ -894,7 +894,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
894894
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; } }
895895

896896
//JS SDK version
897-
var version = '3.3.0';
897+
var version = '3.4.0';
898898

899899
function Request(options) {
900900
return new Promise(function (resolve, reject) {
@@ -2442,17 +2442,6 @@ var Assets = function () {
24422442
return this;
24432443
}
24442444

2445-
/**
2446-
* @method Query
2447-
* @description Query instance to provide support for all search queries.
2448-
* @example Assets().Query()
2449-
* @returns {Query}
2450-
*/
2451-
// Query() {
2452-
// let query = new Query();
2453-
// return Utils.merge(query, this);
2454-
// }
2455-
24562445
/**
24572446
* @method toJSON
24582447
* @description This method is used to convert the result in to plain javascript object.

nativescript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./dist/nativescript/contentstack');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"buildnode": "webpack --config webpack/webpack.node.js",
1616
"buildweb": "webpack -p --config webpack/webpack.web.js",
1717
"buildreactnative": "webpack --config webpack/webpack.react-native.js",
18-
"buildnativescript": "webpack --config webpack/webpack.native-script.js",
18+
"buildnativescript": "webpack --config webpack/webpack.nativescript.js",
1919
"buildall": "npm run buildnode&npm run buildweb&npm run buildreactnative&npm run buildnativescript",
2020
"generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose"
2121
},
File renamed without changes.

webpack/webpack.native-script.js renamed to webpack/webpack.nativescript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ module.exports = function(options) {
1010
output: {
1111
library: "Contentstack",
1212
libraryTarget: "commonjs2",
13-
path: path.join(__dirname, "../dist/native-script"),
13+
path: path.join(__dirname, "../dist/nativescript"),
1414
filename: "contentstack.js"
1515
},
1616
resolve: {
1717
alias: {
18-
runtime: path.resolve(__dirname, '../src/runtime/native-script')
18+
runtime: path.resolve(__dirname, '../src/runtime/nativescript')
1919
},
2020
modules: [
2121
'../src',

0 commit comments

Comments
 (0)